-
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 hanging/stop with remote server (maybe https related) #3729
Comments
Hello, any update on this? |
@MatteoGioioso Can you try to set This is a bit of a guess that this may change things. I'm thinking that maybe a chunk of the script was modified to try to avoid framebusting, but it's modified the googleads so that it's Content-Type is incorrect? The error you are seeing is generally due to a Content-Type header not matching the actual filetype that is served. |
@jennifer-shehane Unfortunately it did not work. Thanks |
I tried to update to new cypress version, still no luck, any news on this? At the moment we cannot test on a live server. |
Hello, any update on this? |
There's not much we can do without the ability to reproduce the error ourselves. If you can provide reproducible code or email the reproducible code to [email protected] |
@jennifer-shehane There is not much to reproduce, in |
up |
@MatteoGioioso it looks like the app has some code that's causing it to bust out of the frame (framebusting) and take over the entire viewport. Check your codebase for code like |
@flotwig I will try to check on a build of our react application, might be the Thanks |
@flotwig Ok, looks like this behavior happens only after we test on a built I will ask this question once again, just to be sure, we are using service worker might that be an issue? |
@MatteoGioioso I think the only known issue with service workers are that they are not cleared at the start of each run: #702 It still looks like you have some framebusting code in your application, that's how users usually run in to this behavior. |
@MatteoGioioso can you try disabling service worker by removing it from the |
Hey @MatteoGioioso, were you able to resolve your issue? |
@bahmutov Ok, after disabling the service worker, we could finally succeed on testing the app in our staging server. I have used the trick you mention in your blog |
Current behavior:
I am trying to run my tests with my staging server in
https
I have recorded a video of the what exactly happens:
https://www.hippovideo.io/video/play/22oQrG8pRA_ShkNs1tXdzdjBu0b8r0Pw9aU_JNy-K9Q
Looks like it is redirecting to my domain and then stop without displaying any error.
Upon inspecting the console I have this error:
Refused to execute script from 'https://www.googletagmanager.com/gtag/js?id=CODE_ID' because its MIME type ('image/gif') is not executable.
This error appears also in my
localhost
but in this environment the tests are running flawlessly without problems.Unfortunately I cannot check if the tests are actually working for
http
, therefore I am not sure this is a problem related only withhttps
Steps to reproduce:
this is my
cypress.env.json
:Versions
The text was updated successfully, but these errors were encountered: