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

cy.skipOn not work with cypress version 9.2.0 #170

Open
stokrattt opened this issue Dec 28, 2021 · 3 comments
Open

cy.skipOn not work with cypress version 9.2.0 #170

stokrattt opened this issue Dec 28, 2021 · 3 comments

Comments

@stokrattt
Copy link

cy.skipOn not work with cypress version 9.2.0
When run test with this version - test loaded many time and not close

@stokrattt
Copy link
Author

Someone has a solution how to fix this plugin in new versions of Cypress

@samtsai
Copy link

samtsai commented May 25, 2022

Can you share a code sample or a reproducible example?

@stokrattt
Copy link
Author

Before if i use
it('test', ()=>{
cy.skipOn('stage')
.......
})
this test skipped on the stage env. Now, it was not skipped (ignored cy.skipOn('stage'))

Now, work only this
skipOn('stage', ()=>{
it('test', ()=>{
.......
})
})

If we use cy.skipOn or cy.onlyOn inside test - it not work, only work when we use - outside test

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