cypress
cypress copied to clipboard
Cypress crashes when accessing in chrome
Current behavior
Based on #19327, Cypress can be on a spec in Open Mode and unexpectedly redirect to the specs list page with no contents. Making this new issue to split out the conversation since that other issue contained two distinct topics.
Desired behavior
Cypress should not reach an empty state of the specs list.
Test code to reproduce
Full test code not available.
Cypress Version
12.10.0
Node version
unknown
Operating System
Windows
Debug Logs
No response
Other
No response
@muralinaidud
I did take a look at the video and I think there's a couple of things going on that could be explained. There is a part that seems like a bug in Cypress, which is that we really shouldn't show you a blank page ever. But right before that there is some sort of navigation event may be caused by the specific website under test:
At 44 seconds Cypress is on the Spec page showing your running spec:
Then at 45 seconds the address bar changes to just /
instead of the full path:
And finally the Cypress app loads the default Specs route, which is what happens when you come in on /
On thing that will help debug further is to record this video with the developer console open in the browser, there is likely at least one error being logged that might point us in the right direction. So please check that out and let me know if there is a console error in the browser.
It's possible the website being tested is resetting the location of the page using some framebusting techniques. Do you have modifyObstructiveCode: false,
in your Cypress config? When this is true
(which is the default) Cypress will catch most forms of framebusting like window.top.location.href='/'
and prevent the website from "breaking out" of Cypress.
The easiest way to figure this out will be to provide a reproducible example that we can run which shows the problem using https://github.com/cypress-io/cypress-test-tiny. Even if you can only share it privately, it will be necessary for us to have something to test against if we identify a bug that we can fix.
Hi @marktnoonan
Apologies for responding little late, but I kindly request you guys to please fix this cypress studio issue, we been waiting for this fix from last one year and checking all versions but it hasn't been resolved yet and I am glad that now you looking into it,
please check the attached video and it was recorded with dev console, and unfortunately I cannot publish the code on open git link, if you can then I would have a call with you and show you what we are experiencing
HI @nagash77 @marktnoonan any progress on this or do you need any further details ?
I looked at the recording but I don't see any obvious issues. What happens at that point in the test? Does it always crash there? Can you at least share the lines of code in the test where this occurs? Only this test?
Without some way to learn more about your code base it's difficult to make suggestions.
commented on the wrong issue
This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided.
@marktnoonan have you looked into the issue ?
it's been an year but this issue is not fixed yet and cypress is not responding as well
We won't be able to look into the root of the issue without a way to reproduce the issue on our side. This has been communicated previously. There is still not enough information to recreate this, so it cannot make progress til that is provided.
HI @jennifer-shehane we cannot share our application in public right, if we can set up a call we can show you the issue we are experiencing. we are ready to help you to re produce this issue on your side to fix, but you should also support us. I even tried to attach the recording and your team couldn't find out the cause, now advise the next step, what we can do from our side, as per our company rules we can't give access to our sites to public, please advise
Hi @marktnoonan @jennifer-shehane if you can share your email, I can send you my code and credentials of the site I am accessing so that you should be able to replicate on your end ?
@muralinaidud [email protected]