Closed bahmutov closed 2 years ago
This is repro in e2e
tests, skip
no worky.
EDIT:
It's not repro in e2e
but I'm experiencing something a little different: if skip
is on the first test, it breaks the beforeEach()
that copies the login cookies and causes subsequent tests to fail because it acts like it's not logged in. So something different is going on in my case 🙈.
Hey team! Please add your planning poker estimate with ZenHub @amehta265 @astone123 @lmiller1990 @marktnoonan @mike-plummer @rockindahizzy @warrensplayer @ZachJW34
I think the problem is zone.js
is overriding it
and not re-applying the skip
property. I could be wrong - but this would explain why it's an Angular only problem, and also why it manifests in both E2E and CT if you are using Angular.
The mocha overrides comes from zone.js/testing
, which (to my knowledge) is only included in CT tests.
@nickAdlard if you are seeing an issue with Angular e2e, do you mind creating another issue with a reproduction so we can dig into what's going on?
The code for this is done in cypress-io/cypress#23829, but has yet to be released. We'll update this issue and reference the changelog when it's released.
Released in 10.9.0
.
This comment thread has been locked. If you are still experiencing this issue after upgrading to Cypress v10.9.0, please open a new issue.
Current behavior
Workaround: use
xit
instead ofit.skip
and it skips itDesired behavior
it.skip
should work :)Test code to reproduce
Following https://docs.cypress.io/guides/component-testing/quickstart-angular in Cypress v10.6.0 package.json file
Cypress Version
10.6.0
Node version
16
Operating System
mac
Debug Logs
No response
Other
No response