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.