1. Install dependencies:
npm install
2. Run the tests:
npx playwright test
3. Generate allure report:
npx allure serve
Other commands:
Starts the interactive UI mode.
npx playwright test --ui
Runs the tests only on Desktop Chrome.
npx playwright test --project=chromium
Runs the tests in a specific file.
npx playwright test example
Runs the tests in debug mode.
npx playwright test --debug
Auto generate tests with Codegen.
npx playwright codegen