Cypress execution freezes if there are multiple tests inside a skipped test suite.
Here is the example code to reproduce the problem:
describe('vehicles overview', () => {
describe.skip('Admin', () => {
it('changes the car information', () => {
expect("value").to.be.a("string");
})
it('adds a cost object for a vehicle', () => {
expect("value").to.be.a("string");
})
})
})
Environment details:
Cypress version: 12.4.1
Browser: Chrome125(headless)
Node: 20.13.1
Question:
Can someone please explain Cypress’s behavior in the following 2 cases:
- When I execute the above spec file, Cypress just freezes and after 59 minutes, the tests are marked as pending.
- However, if I remove the second “it” block – ‘adds a cost object for a vehicle’, Cypress shows the following output in the terminal, which matches my expectation.
Tests: 1
Passing: 0
Failing: 0
Pending: 1
Skipped: 0
Can someone please recommend me a workaround to skip multiple tests inside a test suite, as described in the example code? Neither describe.skip
nor marking individual tests as it.skip
works.