- Override the command from commandline using -- followed by the argument/command
- Debug using page.pause in headful mode to start playwright inspector for debugging
- Artifacts on failure:
screenshot: 'only-on-failure', video: 'retain-on-failure', - Run tests in parallel: use test.describe.parallel, will run the tests in parallel
- add "testDir" to the config to run selected test files. e.g: testDir : "tests/e2e". To run add in the package.json scripts section as follows: scripts : { "tests:e2e": "playwright test --config=e2e.config.ts --project=Chromium" }