-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
it.skip before describe causing problems in both command line run and debugger #8086
it.skip before describe causing problems in both command line run and debugger #8086
Comments
I can reproduce this with the code below. This is a regression in 4.10.0. I tracked it down to being introduced in #7821 - the test runs and passes in the commit before this. describe("UPPER", () => {
it.skip("TEST1", () => {})
describe("LOWER", () => {
before(() => {
cy.wait(1000);
})
it("TEST2", () => {})
})
})
WorkaroundDowngrade to Cypress 4.9.0. |
It actually looks like this issue has (partially) been around for a while, where 4.5.0 (farthest I went back): Ideally it should be showing the Full fix is coming soon anyways so the next released version should include the fix. |
The code for this is done in cypress-io/cypress#8113, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior:
I was using a structure in my test cases similar to this one:
And I noticed that when I run this test suite in debugger it skipped all test cases in "LOWER". Also when I was running it in command line (chrome in headless mode) it cause an error "TypeError: Cannot read property 'addCommand' of undefined". It was because of skipping that one test case directly before describe (TEST2).
Screenshot from debugger:
Error output from running test in headless mode in chrome:
before(() => {
cy.wait(1000);
})
beforeEach(() => {
cy.wait(1000);
})
it("TEST3", () => {
cy.wait(1000);
})
it("TEST4", () => {
cy.wait(1000);
})
})
The text was updated successfully, but these errors were encountered: