Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.

Chaining onlyOn doesn't work #154

Open
GabrielNastase opened this issue May 4, 2021 · 1 comment
Open

Chaining onlyOn doesn't work #154

GabrielNastase opened this issue May 4, 2021 · 1 comment

Comments

@GabrielNastase
Copy link

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

@eloisetaylor5693
Copy link

eloisetaylor5693 commented Dec 30, 2021

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants