Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
docs: add examples to run intersection or combination of tags (#22913)
Kevin Brotcke852f1d788124
diff --git a/docs/src/test-annotations-js.md b/docs/src/test-annotations-js.mdindex 3d9c21640d..8e5c6056d8 100644--- a/docs/src/test-annotations-js.md+++ b/docs/src/test-annotations-js.md@@ -87,6 +87,18 @@ Or if you want the opposite, you can skip the tests with a certain tag:npx playwright test --grep-invert @slow```+To run tests containing either tag (logical `OR` operator):++```bash+npx playwright test --grep "@fast|@slow"+```++Or run tests containing both tags (logical `AND` operator) using regex lookaheads:++```bash+npx playwright test --grep "(?=.*@fast)(?=.*@slow)"+```+## Conditionally skip a group of testsFor example, you can run a group of tests just in Chromium by passing a callback.