Chapter 22. End-to-End Testing

Now that you have seen how unit and integration testing work, you are ready to move on to end-to-end testing, which validates user workflows using an actual browser.

There are many end-to-end testing solutions. One of the most popular tools for testing front-end applications is Cypress. In this chapter, you will use Cypress and the Cypress Testing Library to write end-to-end tests.

Like Jest and the React Testing Library do for unit testing, Cypress and the Cypress Testing Library work together to allow you to write and run end-to-end tests. Cypress runs tests in a browser window, replicating real user interactions. The Cypress Testing Library is part of the same family of frameworks as the React Testing Library, ...

Get React Programming: The Big Nerd Ranch Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.