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

Co-authored-by: Max Schmitt <max@schmitt.mx>
This commit is contained in:
jaktestowac.pl 2023-07-22 00:30:40 +02:00 committed by GitHub
parent 6a3721eb9c
commit f453a17ede
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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