From the course: End-to-End JavaScript Testing with Cypress.io

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Advantages of Cypress.io

Advantages of Cypress.io

From the course: End-to-End JavaScript Testing with Cypress.io

Start my 1-month free trial

Advantages of Cypress.io

- [Instructor] So, now we know what Cypress is, and the main problem it's meant to solve. Let's look at some of the characteristics of Cypress that make it a very useful end-to-end testing framework. The first main advantage of Cypress is that it uses a real browser to run tests. Other end-to-end testing frameworks like Selenium usually use what's called a headless browser to run their tests, which is basically a program that simulates a browser, but doesn't actually display any user interface. Now, one of the problems here is that these headless browsers come with their own set of bugs, and real browsers that users are going to be accessing our application with, like Chrome, have a different set of bugs and quirks. And this means that the tests we run in a headless browser might not always give us the same results that our users will get when they use our application. Cypress, on the other hand, runs our tests inside a real…

Contents