Open ryan-mcginty-alation opened 4 months ago
Thanks for reporting this!
As a workaround until this gets addressed, you can run one of the following:
nx affected -t e2e --grep="\"@visual-regression|@smoke\""
nx affected -t e2e --args="--grep=\"@visual-regression|@smoke\""
Thank you @leosvelperez
Current Behavior
Playwright accepts multiple tags in grep if they are separated by a pipe and wrapped in quotes. When command is run with nx the quotes are stripped and the command fails.
Both commands below fail:
nx affected -t e2e --grep="@visual-regression|@smoke"
nx affected -t e2e -- --grep="@visual-regression|@smoke"
When run directly with playwright from working directory it succeeds:
npx playwright test --grep "@visual-regression|@smoke"
Expected Behavior
Nx playwright executor should support multiple grep arguments and not strip the quotes
GitHub Repo
No response
Steps to Reproduce
npx nx affected e2e --grep "@tag1|@tag2"
Nx Report
Failure Logs
No response
Package Manager Version
No response
Operating System
Additional Information
No response