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

Grep not working when passing an array of tags as string variables #30683

Open
kevingorry opened this issue Nov 27, 2024 · 1 comment
Open

Grep not working when passing an array of tags as string variables #30683

kevingorry opened this issue Nov 27, 2024 · 1 comment
Labels
npm: @cypress/grep @cypress/grep package issues stage: needs investigating Someone from Cypress needs to look at this

Comments

@kevingorry
Copy link

kevingorry commented Nov 27, 2024

Current behavior

it('Activity Filter Date', { tags: [PR, E2E] }, () => { --> This will not work even though PR and E2E are variables that reference a string
it('Activity Filter Date', { tags: ['PR', 'E2E'] }, () => { --> This works when you pass the tags directly as strings

Desired behavior

We should be able to pass variables since on our projects it allow us to prevent people from adding the wrong tags or misspell something since they are forced to chose from a list.

Test code to reproduce

it('Activity Filter Date', { tags: [PR, E2E] }, () => {

Cypress Version

13.6.6

Node version

16.0.0

Operating System

Windows 11 Enterprise

Debug Logs

No response

Other

No response

@jennifer-shehane jennifer-shehane added npm: @cypress/grep @cypress/grep package issues stage: needs investigating Someone from Cypress needs to look at this labels Dec 2, 2024
@ivanlfall-gl
Copy link

Same issue (already reported here). Is there any update about this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
npm: @cypress/grep @cypress/grep package issues stage: needs investigating Someone from Cypress needs to look at this
Projects
None yet
Development

No branches or pull requests

3 participants