cypress/grep throws error when used together with .only #24804
Labels
E2E
Issue related to end-to-end testing
npm: @cypress/grep
@cypress/grep package issues
Triaged
Issue has been routed to backlog. This is not a commitment to have it prioritized by the team.
Current behavior
Cypress throws an error when I add .only in one of the test cases and use --env grepTags=@tag2 filter out the cases.
Desired behavior
Cypress can filter out the cases based on grepTags env variable and run the cases with .only based on the filtered out test case list.
Test code to reproduce
https://github.com/haipinggong/cypress-test-tiny/tree/grep-only-bug
Expected result:
Only the test with name: "tag2 should be run" is run.
Actual result:
Cypress Version
11.2.0
Node version
v16.15.0
Operating System
Windows 11
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: