cypress-select-tests icon indicating copy to clipboard operation
cypress-select-tests copied to clipboard

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

Open qasimhassan opened this issue 4 years ago • 2 comments

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?

qasimhassan avatar Feb 17 '21 15:02 qasimhassan

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

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

onlyOn('...', () => {...})

bahmutov avatar Feb 17 '21 15:02 bahmutov

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

SovaSlava avatar Apr 14 '21 14:04 SovaSlava