Skip to main content

Posts

Showing posts from August 29, 2020

How to write useful end-to-end tests with Cypress

  Visit YouTube Channel to watch more riting software of any complexity can often be a messy task, and this only gets worse when teams get larger and more people start to work on the same codebase. This problem is worsened in frontend development, where there are so many moving parts that writing unit and functional tests might not be enough to verify the application’s correctness. For example, you can’t really verify that a particular user flow doesn’t cause issues through a unit test. End-to-end testing  allows you to replicate user behavior on your application and verify that everything works as it should. If you’re writing production-grade web apps, writing e2e tests is a no-brainer. In this article, we’ll take a look at how to write useful e2e tests on the frontend using  Cypress . While there are other e2e testing tools like  Selenium  and  Nightwatch.js , we’ll focus on Cypress because of its suite of features, which include time traveling through yo...