Support browser specific protocols (chrome extensions)
See original GitHub issueSupport cy.visit()
with protocols other than http
/https
such as:
chrome://
chrome-extension://
resource://
Most notably, chrome-extension://
will allow users to test the UI of a chrome extension.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:176
- Comments:53 (11 by maintainers)
Top Results From Across the Web
Set Chrome policies for users or browsers - Google Support
Specifies whether Chrome browser can use the legacy CORS protocol, which is less secure and strict than Out-Of-Renderer CORS. ... Available on ChromeOS...
Read more >Extensions quality guidelines FAQ - Chrome Developers
To maintain the quality of the Chrome user experience, we require Chrome extensions to have a single purpose. For an overview of the...
Read more >Chrome incompatibilities - Mozilla - MDN Web Docs
Extensions built with WebExtension APIs are designed to be compatible with Chrome and Opera extensions. As far as possible, extensions ...
Read more >Chrome Extension : Custom Protocol? - Stack Overflow
... but it can also be used for supporting fake schemes. Unfortunately, the extension would be quite specific to the user's search settings, ......
Read more >45 Browser Extensions to Perform Accessibility Testing ...
Accessible Web Helper for Google Chrome is a powerful (and free) Google Chrome extension built to help you test your website's accessibility and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
Top Related Hashnode Post
No results found
Top GitHub Comments
I belive there should be way to test extension in real Chrome. Not under web server, not stubbing anything. With doing all this extra work, there is huge space to introduce new bugs and worse - to miss some real bugs.
I didn’t check the source code of Cypress or Chrome so I’m really not sure how it is working under the hood. But isn’t it possible to navigate to
chrome://
andchrome-extension://
in exact same way as tohttp://
? Isn’t it only alias to http and working over http protocol?Btw. I started to play with Cypress only because I need to test extension, I wouldn’t give it a try if it wouldn’t look like it can do this from docs. As other tools are lacking in this area too, it my be great to provide better support for extension authors.
My popup is now successfuly tested, thanks you all! 😎
Some tips for people who wants to spec their extension’s views and mocking
chrome*
API:dist
folder)dist
folder (serve is pretty nice)