-
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 says load event isn't fired, but it is fired #30803
Comments
@lMartin3 Is the application under test hitting the |
@jennifer-shehane Yep I had added a debugger and the event was firing correctly. However, I found the issue and it was a bit weird. The test flow was:
The problem was that the redirection between step 3 and 4 would first lead you to http://auth/login rather than https://auth/login. I was serving this through cloudflare and HTTPS rewrites were on, so technically it was first vising http://auth/login and then it redirected that to https://auth/login. For some reason, that worked flawlessly for users, but in cypress chrome and other browsers wouldn't even allow making a GET request to http://auth/login since auth/oauth/access was served over HTTPS. What's weird is that in the preview, cypres would get to step 4 without any issues where it would see the login form, and there it would throw the "load event not fired" issue. Anyways, thank you for your time |
Current behavior
I have a setup with two extremely simple web applications. One of them is an oauth + openid identity provider (call it "auth portal").
After writing a very simple test, just going into the application (app.example.com) and clicking the log-in button which makes a couple redirects, cypress says the auth application never fires the "load" event.
This is what a typical log-in flow from the application looks like
The auth application loads in 500ms according to chrome dev tools, and I added a console log that fires when the site is loaded, but for some reason cypress doesn't pick it up.
Unfortunately I cannot share much information about the applications themselves, but what I can say is that there isn't any page that takes more than 1000ms to load, that's for sure.
Desired behavior
Cypress should recognize when the page loads
Test code to reproduce
Cypress Version
13.17.0
Node version
18.17.0
Operating System
Windows 11 pro 22631.4602 1000.22700.1055.0
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: