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

Tags are not working when tests are in loop #252

Open
zbigniewkalinowski opened this issue Feb 16, 2023 · 0 comments
Open

Tags are not working when tests are in loop #252

zbigniewkalinowski opened this issue Feb 16, 2023 · 0 comments

Comments

@zbigniewkalinowski
Copy link

I'm using cypress-tags 1.1.2 plugin to run tests in different environments.
I'm running few tests in loop (example code attached).
The problem is that these tests always run, no matter what the tags are.
My tags are added to desribe not to separate it so it should be filtered.

Test code:
const modules = ['module1', 'module2', 'module3']

describe(['staging'], 'test', () => {
modules.forEach(module => {

it('Test something in ' + module, () => {
  //my test
});

});
});

Cypress version:
12.5.1

Node version:
14.15.1

OS:
Windows 10/11

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