Cypress: The future of E2E testing

7764379521726735c164889159c8f387?s=47 Dominic Elm
December 07, 2018

Cypress: The future of E2E testing

When we talk about UI tests, the first thing that comes to mind is probably Selenium. No wonder, it's the most widely used testing framework for web applications. It was originally developed in 2004 and now, after 14 years, it is still hard to implement it correctly. Tests are often flaky, painful to debug, and the overall developer experience is rather poor. But for many years there wasn't another choice, until Cypress was born. Cypress tries to solve the biggest testing challenges, e.g. painless setup, easy to write tests, support for async testing, performance, and a good understanding of why tests fail. Cypress is made from scratch focusing on developer experience, debugability and consistency.

In this talk, we will learn about Cypress and see what makes it so outstanding and reliable. For that, we will compare Cypress with Selenium and see how they are different from one another. In addition, we learn how to write some basic tests, see how easy it is to spy on HTTP requests, use the local storage, and explore its debugging capabilities along the way.

Are you ready? Buckle up, this will be a fun.

Links:
https://github.com/d3lm/todomvc

7764379521726735c164889159c8f387?s=128

Dominic Elm

December 07, 2018
Tweet