-
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
Can't reach to redirected page by the cy.origin() or by 3rd party authentication request when using Chrome browser #23814
Comments
Actually this is happen only by Chrome browser (latest). any solutions for cookies handling inside |
Sorry you're encountering this problem. Thanks for creating an issue and for the thorough reproduction information. It's very helpful. There are currently some known issues with logging in through Google in the Chrome browser that we're actively looking into. Hopefully we'll have a solution in the near future. |
Thanks a lot, This issue is really blocking my project in these days. Thanks |
Hey @idanElitzur. I can at least provide an update with the issues you are seeing with |
Thanks, but you don't have any kind of temporary solution for the use case of cross-origin? |
My guess is that there aren't new cookies set because the programmatic request doesn't set any cookies unless they are third party because it doesn't have the ability to do so as it is a cross-site request. It looks like the For the case of |
OK thanks, I'll try this solution.
and is it should work ok? |
Hey @chrisbreiding |
This should be fixed by #23885 |
related to #24085 |
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
I can't reach the elements in the redirected page of google accounts.
I've already tried by
cy.origin()
and by the auth API request.but both of them are not solving this use case.
Please your help soon, I really stuck in this problem and tried all the related posts I;ve found by the net and nothing succeed :/
Desired behavior
No response
Test code to reproduce
My custom login command:
The authentication API request:
The test file with both of the ways :
Actually the error is about the page load time, even I've increased it to 90sec and it seems like he doesn't do anything, just reached to origin timeout and then the page timeout.
I really tried everything and posted few times here, please your assistance.
Thanks!
Chrome driver v105
Cypress Version
10.7.0
Node version
v14.19.1
Operating System
macOs 12
Debug Logs
After close cypress is crashed with the error:
Other
JS error from console that always return when using
cy.origin()
even i tried to solve this out by some configuration in the e2e.ts file:The text was updated successfully, but these errors were encountered: