Cypress test consistently crashes Chromium renderer #24428
Unanswered
james-bartlett
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm running into an issue where a single Cypress test will cause the chromium renderer in Electron to crash (almost) every single time.
It shouldn't be an infinite loop because a nearly identical test was having the same problem when using
npx cypress open
, but managed to complete when usingnpx cypress run --headed
.Both tests visit a webpage with a table on it, loop through every row of the table, click on the row to open a details page, push some of the fields to a dictionary, and close the details page. If there are multiple pages of the table, the test increments the counter and recursively calls the same function. (The break condition is when the current page is not less than the total number of pages).
The test that consistently crashes has more pages than the one that manages to complete, but the renderer crashes sometimes just on the first page of the table, sometimes on the second, and has never ran long enough to make it to the third.
I've tried closing my other chromium-based browsers, running from powershell directly instead of the terminal inside VS code, running headlessly, but I still can't manage to get the test to complete.
I don't have assertions in here because I'm using the cypress cucumber preprocessor so I can write my specs using Gherkin, and this is my
When
method. Maybe this is the problem, but I haven't tried refactoring everything into a Mocha format.EDIT: I tried splitting the tests into two separate tests, one per page of the table, but even having both tests in the same spec causes the renderer to crash. If I comment out one of the tests and run the other, it will work, but trying to run both back to back still crashes.
This really feels like a problem with Cypress, maybe in combination with the Cucumber preprocessor, but it doesn't seem like I can run more than one test per spec this way.
Beta Was this translation helpful? Give feedback.
All reactions