Cypress and Cross Browser Testing now available

February 13, 2020


I received an email yesterday with excellent news. Cypres has just introduced support for new browsers: Firefox and Microsoft Edge. As far as I know Firefox support was one of the most frequently reported tickets by the community so it is nice that the developers proved this feature.

You can find the previous post here: Cypress and correct use of selections, data-cy attribute

Cypress version update

First of all, I check that the tests I have created so far are working properly. I start Cypress with the command:

npx cypress open

Then I run all the tests - verifies the output. Everything works as it should. So I close the tool and proceed to update. I use the command in the terminal:

npm update cypress

Running this command only resulted in updates to version: 3.8.3. Only the command:

npm install cypress@4.0.1

It resulted in the installation of the tool in the version I expected. I am checking the installation:

npx cypress open

All the tests run in the way I expected on Google Chrome.

In case of problems after the update, the developers have prepared specific examples on how to deal with them. Some of the libraries on which Cypress is built have been deprecated, such as Mocha and Chai, which may cause some tests you have written so far to be incompatible:

Running tests on other browsers

Changing the browser from within Test Runner is available in the upper right corner.

How to choose browser cypress

As you can see Firefox and Edge are not available from a mundane way. I don’t have these browsers installed on the disk. I fix this problem and restart Test Runner. After installing the browsers, I encountered the problem. Command:

npx cypress open

It was not causing Test Runner to open. The command was hanging and I had to cancel it in the terminal. I fixed this in a fairly simple way. I started the tests in the terminal with the command:

npx cypress run


npx cypress open

It was already working properly. After performing these operations, I now have new browsers available!

new browsers cypres

The launch of the tests has already run without any problems. Their results coincide with those of Google Chrome. Here are the recordings of the tests.


firefox video


Edge video

You can also run the tests from the terminal:

npx cypress run --browser firefox

npx cypress run --browser edge


The tool update was not entirely without problems. However, it was possible to solve them in fairly simple ways without contacting support. In the end, tests on Firefox and Edge run correctly. Using the new features is cool.

Code on github available on branch: