-
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
cy.origin redirects inside embedded browser window but url of embedded browser does not change (Chrome and Electron) #21988
Comments
@sebamomann, thanks for reporting this issue. Based on the login working correctly in Firefox I am inclined to believe that you are being impacted by our cookie handling. We are currently working on #20685 to improve our cookie handling. I am going to close this issue as a duplicate of #20685. If you are still experiencing this issue after #20685 is resolved, please comment on this issue and we can reopen. |
Still happens to me on cypress 10.7.0. |
I just revalidated it with 10.3.0, 10.7.0 and 10.8.0. All versions work fine in my case. |
Actually this happens to me only when I'm using Chrome browser v105x |
Said runs were on Chrome 104. |
Current behavior
Upon clicking a "Login" button, the user gets redirected to the
/account/login
page (still localhost) and is then redirected to the (Keycloak) IDP where the user should log in.After the successful login, the content of the embedded browser changes, since after a successful login my IDP (Keycloak) redirects back to the AUT. But in some cases (more often than not) the URL does not change appropriately. The URL still shows the IDP URL (https://account.sebamomann.de/auth) . The runner also shows an error message saying it is still waiting for the page to load.
Image shows faulty URL (still IDP URL) but correct content (localhost) while "waiting for new page to load"
After timeout the following error gets shown.
Behaviour is observable in Chrome 101 and Electron 100.
Working fine in Firefox 100.
Desired behavior
After a successful login on the IDP website the user shold be redirected back to the AUT (http://localhost:4200). The URL of the embedded Browser should also change, so further actions and URL comparisons can be made.
Test code to reproduce
Custom command looks as follows
Cypress Version
9.6.0, 9.6.1, 9.7.0
Other
behaviour is identical when not having
after the testcase. This was just for debug purposes but has no effect.
Error is now just shown at the first
cy.origin
instead of the secondcy.origin
Possibly related to #21363
The text was updated successfully, but these errors were encountered: