Playwright -- How to run more than one tag of tests
Run tests from multiple tags with a single command
Play this article
Scenario :
Assume,
You have got two exclusive set of tests (i.e. no common tests in each set), one with tag @Prod-UI and another set of tests with tag @PR-push
How do you run tests from both the tags as part of a single command ???
Answer :
yarn test:pw --grep "@Prod-UI | @PR-push"
yarn test:pw ==> ALLURE_RESULTS_DIR=e2e/allure-results playwright test
e2e --headed --config e2e/pw.local.config.ts