Google Oauth timeout error
See original GitHub issueHello there! I already saw some similar issues, but mine is a bit different.
So my react app uses Google JS Client library to handle the OAuth 2.0 flow. And I don’t use any custom cookies etc, google handles things for me (so to be honest I don’t know where and which data window needs to have to be in a logged-in state).
I want to test the application, but basically, I need to login first to access anything.
And I decided to try this plugin.
First of all, it throws the same timeout error(that email field is not found). I investigated a lot, and now I managed to have the login process running but only in not headless mode.
If headless mode is true, then test fails with the same time out error, and popupDelay
doesn’t help.
Now another thing, since I don’t have any custom cookies, and google handles things for me, I see that with this plugin I still cannot do much, because probably I need to have localStorage
and sessionsStorage
from ‘accounts.google.com’ domain. Is this something doable? (I am not very familiar neither with cypress nor with puppeteer) And currently, at least in not headless mode I see that ‘localStorage’ and sessionsStorage
are empty objects after task is done ((
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:10 (5 by maintainers)
Top GitHub Comments
Yep, that’s… everyone’s problem 😃 I don’t have a way around it, it’s basically anti-fraud preventions from these social login providers like Google, GitHub, etc. Some will ask you for a 2FA and others will show a CAPTCHA.
@lirantal sory for that, double checked it and you are right, the issue occurs only with headless: true, on non headless I am getting error that my browsers is not secure like on #71 😦