Cross-Browser Testing

Learn why cross-browser testing is important and how Cypress allows us to do cross-browser testing easily.

When building an application for the web, it is probable that our users won’t be using a single browser. While the market share is mainly dominated by Chrome, some other popular choices include Safari, Firefox, and Edge.

If your traffic is in the millions, even 1% of users can mean tens of thousands. If you don’t want to miss out on an audience, you have to make sure your application works perfectly across different platforms. This is why cross-browser testing is important.


Selecting browsers through the test runner

Cypress has the ability to run our test cases in multiple browsers. Currently, it supports Chromium-based browsers, such as Electron, Chrome, Firefox, and Edge.

Others such as IE or Safari are currently unsupported. You can read about their roadmap regarding cross-browser support on GitHub.

Apart from Electron, any browser that we want to use to run our test cases needs to be installed locally or in our CI environment.

Once the browsers are ready, we can find and switch between them in our test runner in the upper-right corner.

Get hands-on with 1200+ tech skills courses.