cypress: Cypress 13.6.0+ Hanging During Run
Current behavior
While running test through Cypress App
npx cypress open
the specs execution is hanging without any error and need to stop it and re-run it again, spinner is rolling:
Note: there was no changes in this spec and it was running ok with Cypress 12
Chrome: Version 119.0.6045.199
Desired behavior
No response
Test code to reproduce
no response
Cypress Version
13.6.0
Node version
v18.17.0
Operating System
macOS 14.1.2 Sonoma, Apple M2
Debug Logs
No response
Other
No response
About this issue
- Original URL
- State: closed
- Created 7 months ago
- Reactions: 7
- Comments: 21 (4 by maintainers)
And ah yeah, my bad. It’s hard to tell from the OP as their screenshot doesn’t show whether or not the test was running. But the title does say “during run”, so maybe I’ve got the wrong issue. 👍🏻
Hi all,
I just started with Cypress Component Testing v13.6.3.
I have no problems to run the HelloWorldComponent test with:
Hope this helps a little bit.
Would be nice to find a solution to fix it to be able to run the test with Chrome.
For me its the same thing as @psibean I can’t really provide a reproducible example because we are testing applications that we develop inside another very big webapplication (a document management system) that is developed by a third party. I couldn’t find a way to reproduce it outside of this application. If there is another way I can help I will try.
I’ve been able to reproduce this locally 99% of the time on 13.6.0 and 13.6.1, it isn’t the same as the focus issue, as I also experienced that problem separately from this one.
Happens on both MacOS 14.1.2 and 14.2. M1
Cypress 13.6.0 and 13.6.1 both presented this issue for me.
I tried all of the following and various combinations there of:
As well as clearing the App Data under Developer Tools > View App Data.
Nothing works. There’s an extremely small chance doing all of the above will allow me to run one test, but then the focus bug happens and prevents the test from running, and then re-running the test puts it back where it doesn’t run at all.
The smoke test didn’t show any errors or warnings, while starting Cypress and Chrome, no warnings or errors, even with
ELECTRON_ENABLE_LOGGINGset to true, everything was fine, but Cypress would hang indefinitely and not even start the spec execution.I reverted back to the last known working version we had, 13.3.3 and it worked right away.
I then updated to 13.5.1 and it also worked immediately.
Updating back to 13.6.0, the issue presented itself straight away, going back to 13.5.1 works.
So something in 13.6.0 has caused this problem.
Edit: So far 13.5.1 has been one of the better experiences I’ve had had since migrating from v10 to v12 and then v13
Edit: I should also note I am running in an arm64 context. When running Chrome via cypress and checking the version, it shows it is definitely the arm64 version of the browser.
Seems the issue happens in Chrome Browser, as Electron works as expected