-
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
Injected Chrome Extensions fail to load #876
Comments
I'm trying to separate out what you're trying to do vs what should be working. From a cursory glance, it seems as if the extension parts of your issue is not actually the real issue. It seems that you're trying to visit 3rd party sites to do your OAuth login. That is not supported - you'll need to use google's programmatic API's directly and avoid logging in through them. We have a comprehensive explanation here: https://docs.cypress.io/guides/references/best-practices.html#Visiting-external-sites Additionally, we have several recipes showing you how to handle SSO type logins. |
Ah, thanks for the explanation, but its actually not the Google login that is the problem, I only have that code to login via Google as a helper (but in the end, its not that useful), the problem is that when I am logged into Google Calendar via Cypress, it blocks every attempt to load the Chrome Extension into the page. So I dont think Google is the problem here. The Chrome Extension is asking for data from a (non-Google) API, but the Chrome Extension loads fine everywhere in Chrome EXCEPT from inside of the Cypress-controlled Chrome. |
Hi @radiovisual, please follow this issue here for our chrome extension support There is an example of testing an extension that injects into the DOM of gmail. |
Is this a Feature or Bug?
Bug.
Current behavior:
When I load a Chrome Extension (per the instructions here) the Chrome Extension icon is visible in the corner of the Cypress-controlled version of Chrome, however, the extension does not load itself into the page, and I get the following errors:
Desired behavior:
When I install a Chrome Extension that injects contents into the current page, I expect to be able to interact with the injected contents of the Chrome Extension
How to reproduce:
Test code:
Additional Info (images, stack traces, etc)
If the Chrome Extension loaded successfully, this is what you would see:
Or if you have connected your Calendar to Meekan, this is what you would see:
**UPDATE (Nov 9 2017): I removed the Google Login from the test code, it was not relevant to the problem, it was only there as a helper to anyone who might be trying to troubleshoot the problem.
The text was updated successfully, but these errors were encountered: