-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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 14 CLI Mode: Element hanging #30866
Comments
@Ognengineer Thanks for opening the issue! I've been on the lookout for this since you mentioned it. We'll investigate. |
@Ognengineer I cloned your reproduction and gave the tests both a run in open mode with Electron. I am getting the same result in ![]() |
Tbh I quickly created this based of some failed test on the real project which I can't share. For me in the Open mode the shared repo test pass, where in the cli --headed the test fail, tested only with cy14. Currently, on the project we are on cypress 13.16.1 binaries build with the fix for same origin match for cookie jar. Let me test it with 13.17.0 and come back to you with the outcome. Edit: I will need to do more investigation I guess however sharing the outcome of the tests from the two versions. |
Hi @Ognengineer 👋🏼, would you be willing to try a pre-release binary from this commit to see if it fixes your issue? Thanks! |
Hi @mschile, unfortunately, the issue is still there with the suggested build, and now suspect that it might be memory-related. I'm super busy on the project and privately atm and unable to do some investigation and debugging. |
I think we are also seeing this with our With the Cypress 14 upgrade, the Electron tests now take 3 times as long as before (also 3x longer than Chrome which seems fine on Cypress 14) Run time comparison Cypress 13 vs 14
|
@Ognengineer we fixed a few visibility issues in @MetRonnie I have verified that there is a separate issue involving your dramatic performance degradation. I will open a separate issue for that. It appears to be related to the Electron version we are using. Specifically it seems like |
@ryanthemanuel you are right, I've just done a run with --browser chrome and all the tests were passing again. I am happy that we know the root cause |
Current behavior
When running Cypress tests in CLI mode for version 14.0.0, there are recurring issues with elements not being found within the specified timeout period. This results in AssertionError messages indicating that certain elements cannot be located in the DOM or should not be visible.
The problem appears to be related to timing or rendering issues when executing tests in CLI mode, which may differ from the behaviour observed in the interactive mode. This inconsistency suggests there could be underlying issues with how elements are rendered or how the application responds to commands in this mode.
Note: that this is not the case with Cypress 13.x.x
I would need additional investigation to identify the root cause and potential solutions for these element not found or hanging errors. @jennifer-shehane attention to this matter would be greatly appreciated.
linking the comment on the mentioned issue #25806 (comment)
Desired behavior
All elements that are supposed to be present in the DOM should be found and interactable within the specified timeout period. This includes elements like buttons, icons, and input fields that are essential for the tests to proceed.
Test code to reproduce
https://github.com/Ognengineer/Test-Cypress-14-pre-release
Cypress Version
https://cdn.cypress.io/beta/npm/14.0.0/linux-x64/document-domain-binary-ce19f25e1b0b5cf626535b31894c4adc377bee08/cypress.tgz
Node version
18.20.1
Operating System
Azure agent running on linux
Debug Logs
Other
No response
The text was updated successfully, but these errors were encountered: