This project is a Playwright test runner built with TypeScript and JavaScript.
This project is a Playwright test project template and code library. It is built with TypeScript and JavaScript. Much of the contents were inspired by or made during my work on the first major QA automation project I did professionally. Some parts will be good, and other parts assuredly less so. This is part portfolio showcase, part nostalgia, and part reference project.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Node.js
- npm
- Clone the repository
git clone https://github.com/graffhyrum/playwright-project-demo.git
- Install dependencies
npm install
- Copy the
.env.example
file and create a.env
file
cp .env.example .env
- Uncomment the environment flag in the
.env
file that you want to test
Run the tests using the following command:
npm test
This project is licensed under the ISC License.
- Parameterize the relevant configuration elements of the project factory.
- Project names (eg environment names and custom setup/teardown names)
- testConfig.testMatch
- testConfig.use.baseURL