- We can run a single test file from the CLI in playwright using this command.
npx playwright test tests/testName.spec.ts
- Use this if you want to run it in headless or headed mode.
npx playwright test tests/dbl.spec.js --headless
npx playwright test tests/dbl.spec.js --headed
- If you want the test to run in a specific browser, use this.
npx playwright test tests/dbl.spec.js --headed --project='chromium'
- Log in to post comments