Cypress 10 component test crash after 100~ tests
See original GitHub issueCurrent behavior
Both on CI and on localhost, after running a hundred component tests (i.e. 138 of 227) via cypress run --component
, Cypress 10 would fail with the following error:
ERR_FAILED (-2) loading 'http://localhost:8080/__/#/specs/runner?file=src/dct/components/HoverableItem/Collection/test.tsx'
Error: ERR_FAILED (-2) loading 'http://localhost:8080/__/#/specs/runner?file=src/dct/components/HoverableItem/Collection/test.tsx'
at rejectAndCleanup (node:electron/js2c/browser_init:161:7647)
at EventEmitter.stopLoadingListener (node:electron/js2c/browser_init:161:8022)
at EventEmitter.emit (node:events:390:28)
at EventEmitter.emit (node:domain:475:12)
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Running: test.tsx (139 of 227)
Unhandled rejection Error: ERR_FAILED (-2) loading 'about:blank'
at rejectAndCleanup (node:electron/js2c/browser_init:161:7647)
at EventEmitter.stopLoadingListener (node:electron/js2c/browser_init:161:8022)
at EventEmitter.emit (node:events:390:28)
at EventEmitter.emit (node:domain:475:12)
If I run the failing test via cypress open
it passes correctly.
If I comment out the component test that provoked the error, another one will trip with the same error, usually around the same ~120 of β¦ 227 number.
Desired behavior
All component tests should run correctly
Test code to reproduce
Doesnβt matterβ¦event the following fails:
import { Disabled } from ".";
describe("Disabled", () => {
it("Should render", () => {
cy.mountWithTheme(<Disabled />);
cy.contains("How would you like to pay?");
});
});
Cypress Version
10.0.3
Other
No response
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:29 (18 by maintainers)
Top Results From Across the Web
Changelog - Cypress Documentation
When a chromium based browser tab or process crashes, Cypress will no longer hang ... Cypress 10 now includes beta support for component...
Read more >Cypress test runner crashing issue - Stack Overflow
This way was can reduce the memory consumption. Save the configuration, close and star the app again. Avoid writing lengthy tests and split...
Read more >Cypress: The crash post - by Aleix Suau - Medium
Cypress makes testing your app like a real user very easy. After working with it for a few weeks, I'd like to condensate...
Read more >Jest Β· Delightful JavaScript Testing
With so many users, the core team of Jest uses an Open Collective for non-Facebook contributors. Sponsors. Sponsors are those who contribute $100...
Read more >Cypress Tips and Tricks - Gleb Bahmutov
A few tips on getting the most out of E2E testing tool Cypress ... Make JavaScript crashes useful; Use test names when creating...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Right, I thought it went out already. Letβs wait for the next release. Thanks.
Good to know itβs an electron issue. I wouldnβt say chrome fixes it - it just avoids it, haha.
We have some work coming soon to update the electron version we use, maybe that will fix this issue. Until then, Iβm going to hold off on looking into this. If the electron 19.x bump doesnβt fix it, Iβll take another look.