So I’ve been using Cypress for a while now to test our apps, it’s an incredible testing tool, with many features developers will feel at home with and providing incredibly fast and detailed feedback which remote-browser tools cannot compete with.
However there has been a bone of contention for some. The lack of cross-browser compatibility. For now, it will only work with Chrome and Electron.
Yep, no IE10/11, Firefox, Safari, Opera etc.
Best not delete your favourite Selenium based tool just yet.
However there is some light on the horizon, and from the likes of Microsoft no less.
Rumours floated around late last year that Microsoft were ditching efforts on their budding IE11 replacement Edge, with well, Edge. Just based on Chromium this time. You can get it for Windows 10 here from Windows Insiders.
If you visit the above page on a MacOS, you’ll see a button asking you to be notified, however Twitter user WalkingCat posted up links from Microsoft’s CDN.
So I thought I would spin up Cypress and see if I could get it to work with Edge but it choked on the folder name.
Hmmm, lets rename the app so it doesn’t have spaces in it.
So we need to tell Cypress about Edge
Its listed now, good start
Lets fire up Cypress runner in GUI mode
Let’s run all the integration tests.
As if they all passed first time. How about the CLI?
Sweet! Not bad for a first run! Now we just need to wait for Microsoft to release Chromium Edge to the masses. Hopefully a linux flavour will be on the horizon, I will keep you posted if so!
Follow the PR to track Cypress & Microsoft Edge – https://github.com/cypress-io/cypress/pull/4203
Thats all folks, thanks for reading, and feel free to follow me @ https://github.com/YOU54F for more of my fumblings in code.
Update :- I’ve now followed up this with another blog post where I have published a beta version of Cypress with Edge support for testing purposes. See here for the blog post with a link to an example GitHub repo and installation instructions!