cypress-skip-test icon indicating copy to clipboard operation
cypress-skip-test copied to clipboard

Chaining onlyOn doesn't work

Open GabrielNastase opened this issue 4 years ago • 1 comments

Whenever you have multiple onlyOn chained or unchained

cy.onlyOn( false === true).onlyOn(true === true)

The second condition is not evaluated as the first condition will always throw immediately , skipping the test

GabrielNastase avatar May 04 '21 12:05 GabrielNastase

I get the same issue.

Using the following versions

"@cypress/skip-test": "^2.6.1", "cypress": "^9.2.0"

OS: OSX 11.6.1 node: v14.17.6 npm: 6.14.15

eloisetaylor5693 avatar Dec 30 '21 16:12 eloisetaylor5693