In order to run automation tests locally you’ll need these tools on your local machine:
- Git
- VS Code
- Node.js
- Docker Desktop - to run tests inside docker(optional)
Clone the git project and install the npm dependencies
npm install
Install suported browsers dependencies
npx playwright install
Run tests using npm scripts in package.json.
npm test
You can also run the tests inside Docker
docker build -t auto .
docker run auto npm test
NOTE: Tests are run using 4 browser instances in parallel and in headless mode by default. To see browser windows with test executing, set the env variable:
export HEADLESS=false
After test run the results can be found in /playwright-report folder. Just open index.html file to see execution steps and video files showing each test execution.