cypress: Cypress hanging/stop with remote server (maybe https related)
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 with https
Steps to reproduce:
this is my cypress.env.json:
{
"baseUrl": "https://mydomainname.com"
}
Versions
cypress: 3.1.5
Windows 7 Professional 64-bit
Chrome 72
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 15 (6 by maintainers)
@MatteoGioioso can you try disabling service worker by removing it from the
navigatorobject to avoid registering it? https://glebbahmutov.com/blog/cypress-tips-and-tricks/#disable-serviceworkerThere’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 support@cypress.io