cypress-io / cypress

Fast, easy and reliable testing for anything that runs in a browser.
https://cypress.io
MIT License
47.02k stars 3.18k forks source link

sync skip; aborting execution error thrown when this.skip() inside function #14867

Closed przemek-rzedkowski closed 2 years ago

przemek-rzedkowski commented 3 years ago

Current behavior

Scenarios skipped with use of "@focus" annotation generates a bug as seen on screenshot: image

Focused scenario(s) run(s) correctly. It happened shortly after upgrading cypress to v.6.4.0 (I was using 6.3.0 before). Also I am using cypress-cucumber-preprocessor v.4.0.0. Problem disappears while running tests without annotation. It's my first bug here so if you need any additional info please let me know, I will gladly provide :)

Desired behavior

It should simply run focused scenario(s) and skip the rest of them without failing .

Versions

Cypress v.6.4.0 cypress-cucumber-preprocessor v.4.0.0