Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

docs(test-annotations): add grep scripts examples for windows shells (#24304)

jaktestowac.plf453a17edee9
diff --git a/docs/src/test-annotations-js.md b/docs/src/test-annotations-js.md
index 5076f1abbe..c3ed61b1ba 100644
--- a/docs/src/test-annotations-js.md
+++ b/docs/src/test-annotations-js.md
@@ -93,6 +93,18 @@ To run tests containing either tag (logical `OR` operator):
npx playwright test --grep "@fast|@slow"
```
+On Windows shells:
+
+- PowerShell
+ ```powershell
+ npx playwright test --grep --% "@fast^|@slow"
+ ```
+
+- Command Prompt(cmd.exe) / Git Bash:
+ ```cmd
+ npx playwright test --grep "@fast^|@slow"
+ ```
+
Or run tests containing both tags (logical `AND` operator) using regex lookaheads:
```bash