bahmutov / cypress-select-tests

User space solution for picking Cypress tests to run
96 stars 14 forks source link

Code in before() runs even if test is not tagged and should be skipped #199

Open qasimhassan opened 3 years ago

qasimhassan commented 3 years ago

I've noticed an issue where code in the before() will still run for tests that should be skipped. Seems like it works as intended for the code in beforeEach().

Is anyone else having the same issue, and if so, is there a fix/workaround?

bahmutov commented 3 years ago

what's the test / block structure? Is this something like this?

before(() => {...})

onlyOn('...', () => {...})
SovaSlava commented 3 years ago

before(() => {...})