-
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() not working when the application redirects to external origin #24085
Comments
@chrisbreiding |
Likely related to #23999 and fixed by #23885. I am not going to close the issue but I am going to link it. I believe the same-origin spec bridge changes to @idanElitzur have you tried this in Edge by chance? |
related to #23814 |
I believe @AtofStryker is correct. |
@AtofStryker Thanks for your all answers and the nicely support. |
@idanElitzur Glad I can help! Chrome should work for your needs once we are able to release #23885. The only reason I ask about trying Edge or another browser is it may work since this is strictly a Google Chrome issue. If it does, I can say for certain that #23885 resolves your issue. Or if you are comfortable waiting for #23885 to release that works too! |
Electron don't work with this implementation as well, it's not pass the cookies inside the origin and the google account login over there seems vanilla without the integration to my tested app. Electron debug logs - cookies (edited the sensitive values):
|
With FireFox |
@idanElitzur are you running with the |
We likely don't have a close base of support until |
The code for this is done in cypress-io/cypress#23885, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior
cy.origin()
still not working as expected even I've upgraded to the new release with the related bugfixes over there.When clicking on some connect pop-up from the application it's redirecting to google account page (external url and totally different from the base url).
Trying to use
cy.origin()
to be able to reach out the page elements over there but the cy.origin reaching the timeout and return the error below:I've to inform that I'm using
cy.session()
for login the application by thebefore()
hook, and the cookies preserve over there.Also I got this error when closing the cypress runner by CMD+C :
Desired behavior
No response
Test code to reproduce
cypress configuration:
chrome 106 driver configuration:
Login file:
Test suite file:
Cypress Version
10.9.0
Node version
14.19.1
Operating System
macOS 12.3.1
Debug Logs
The text was updated successfully, but these errors were encountered: