Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cypress/grep is not omitting filtered tests properly #30757

Open
ivanlfall-gl opened this issue Dec 12, 2024 · 0 comments
Open

Cypress/grep is not omitting filtered tests properly #30757

ivanlfall-gl opened this issue Dec 12, 2024 · 0 comments

Comments

@ivanlfall-gl
Copy link

Current behavior

Using Tags.MyTag (MyTag is a String value) tagging system. Grep filters and omits tests properly when I use {tags: Tags.MyTag} in my tests but is just filtering but not omitting when I have multiple tags. Ex; {tags: [Tags.MyTag, Tags.MyTag2]}

Desired behavior

Cypress/grep should filter and omit tests even if they have just one or multiple tags in Tags.MyTag way.

Test code to reproduce

describe('My test suite', () => {
it('Test with single tag', { tags: Tags.MyTag }, () => {
// Test code here
});
});

describe('My test suite 2', () => {
it('Test with multiple tags', { tags: [Tags.MyTag, Tags.MyTag2] }, () => {
// Test code here
});
});

Cypress Version

13.13.2

Node version

v20.13.1cypres

Operating System

Windows 11 Pro 22631.4602

Debug Logs

@cypress/grep: filtering using tag(s) "myTag"
@cypress/grep: will omit filtered tests
Could not determine test names in file: path/cypress/tests/e2e/spect1.cy.js
Will run it to let the grep filter the tests
Could not determine test names in file: path/cypress/tests/e2e/spect2.cy.js
Will run it to let the grep filter the tests

Other

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant