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 · 0 comments
Open

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

kevingorry opened this issue Nov 27, 2024 · 0 comments

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

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