cypress icon indicating copy to clipboard operation
cypress copied to clipboard

Cypress crashes when accessing in chrome

Open marktnoonan opened this issue 1 year ago • 11 comments

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.

Screenshot 2023-05-17 at 9 52 37 AM

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

marktnoonan avatar May 17 '23 13:05 marktnoonan

@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:

Screenshot 2023-05-17 at 9 58 06 AM

Then at 45 seconds the address bar changes to just / instead of the full path: Screenshot 2023-05-17 at 9 59 43 AM

And finally the Cypress app loads the default Specs route, which is what happens when you come in on / Screenshot 2023-05-17 at 10 01 18 AM

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.

marktnoonan avatar May 17 '23 14:05 marktnoonan

2023-05-24-17-08-05.zip

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

muralinaidud avatar May 24 '23 15:05 muralinaidud

HI @nagash77 @marktnoonan any progress on this or do you need any further details ?

muralinaidud avatar May 29 '23 16:05 muralinaidud

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.

lmiller1990 avatar Jul 10 '23 04:07 lmiller1990

commented on the wrong issue

nagash77 avatar Aug 17 '23 19:08 nagash77

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.

cypress-app-bot avatar Jun 16 '24 01:06 cypress-app-bot

@marktnoonan have you looked into the issue ?

muralinaidud avatar Jun 18 '24 07:06 muralinaidud

it's been an year but this issue is not fixed yet and cypress is not responding as well

muralinaidud avatar Jun 18 '24 07:06 muralinaidud

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.

jennifer-shehane avatar Jun 19 '24 17:06 jennifer-shehane

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

muralinaidud avatar Jun 19 '24 19:06 muralinaidud

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 avatar Jun 19 '24 19:06 muralinaidud

@muralinaidud [email protected]

jennifer-shehane avatar Jul 08 '24 19:07 jennifer-shehane