Cypress execution freezes in the local as well as CI environment if there are multiple skipped describe blocks. Here is the example code to reproduce the problem:
/* globals Cypress: true, cy: true */
describe.skip('Groups counter widget', () => {
it('should redirect to groups page', () => {
expect('value').to.be.a('string')
})
})
describe.skip('Custom Locations counter widget', () => {
it('should allow to create new custom locations if there are no custom locations in domain', () => {
expect('value').to.be.a('string')
})
})
Environment details:
Cypress version: 12.4.1
Browser: Chrome126(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 during execution. I have to manually exit the process.
-
However, if I remove the second “describe” block, Cypress shows the following output in the terminal, which matches my expectations.
Tests: 1
Passing: 0
Failing: 0
Pending: 1
Skipped: 0
Can someone please recommend me a workaround to skip multiple describe blocks in a file, as described in the example code? Neither describe.skip
nor marking individual tests as it.skip
works. I find it strange that this issue is reproducible even in our CI environment. Also, using the latest Cypress version 13.13.0
doesn’t solve the problem.