-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cypress 13.6.0+ Hanging During Run #28459
Comments
Seems the issue happens in Chrome Browser, as Electron works as expected |
I think I had almost the same issue. It worked with cypress It showed me that the test was still running and the spinning wheel as in the screenshot could be seen. But in the cypress runner there was no "active step" still executing. |
@hrapulya @ItsWasteD There's an issue open with 13.6.0 hanging when you pull focus away from the window. Let me know if this is what is happening in your case... We haven't been able to reproduce it though, so it would be really really helpful to provide a way to reproduce it. #28392 |
@jennifer-shehane We have exact same thing. Only in Chrome browser, when you get out of cypress runner window it hangs without any errors. |
I am seeing the same behavior in jenkins
i am running
would this indicate chrome crashing ? |
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 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. |
My team and me are experiencing the same issues mentioned above on cypress 13.6.X, MacOS ventura 13.6.3. |
We're still looking for a way to reproduce this hanging, seperate from the focus hang issue if anyone can provide a reproducible example. |
I think "reproducible" will be difficult, however I am able to reproduce this 100% of the time on my work mac and project. Is there anything I can do or provide that would be helpful? Is there a way I can run Cypress itself in debug mode from within If you point me to the code that starts a spec run when the "re-run" button is pressed from the command pane, I can debug this and provide more insight. I'm just not familiar with the Cypress codebase itself. |
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. |
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. |
Our project seems to experience this problem as well: we run cypress tests in a docker container as part of our CI pipeline. With 13.5, our tests succeed. Any attempt to upgrade cypress to 13.6 results in one particular test hanging (page load timeout). This is an open source project, but the pipeline outputs are not publicly visible. The project structure is complex so it would not be particularly easy to extract an independent reproducing example, but if this would help a cypress maintainer to pinpoint this bug I can attempt to do so. |
Just to check here, your spec actually runs, and then the page load hits a timeout, or? This issue pertains to a spec not even starting, it hangs on the "Your tests are loading..." and never progresses. Screenshot attached. Lets say I have a spec file named "example.tests.ts", the last output in the Cypress terminal is this:
@jennifer-shehane where is this request made in the Cypress code? With this information I could debug the problem and provide more insight. |
Thats not what happens for me. My first comment in this Issue resembles what happens to me. Suddenly the test doesn't continue even tho there wasn't an error or anything. Also it doesn't show the currently running command inside the test. |
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. 👍🏻 |
Could you all try to update to 13.6.6 and let us know if you're still experiencing this issue? We fixed an issue in 13.6.5 with some hanging situations that were introduced in 13.6.0 and we want to understand if this has also resolved this issue. Thank you! |
@jennifer-shehane I updated to 13.6.6 and all the tests I tried worked fine. I will update you if there are any problems but for now at least for me that issue seems solved. |
I got a laptop upgrade from an Could it be that the issue is focused on older, intel processor macbooks? |
Going to close this as resolved and monitor any more comments left here. |
I've since bumped up to 13.9.0, and so far things seem fine in regards to the hanging / freezing experience I was having with 13.6.2. I can see all kinds of various fixes since then that might have been the cause (for example, the extension being disabled / unavailable). |
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
The text was updated successfully, but these errors were encountered: