Module 8 Introduction
Introduction to module 8: Cypress e2es
Get the project source code below, and follow along with the lesson material.
Download Project Source CodeTo set up the project on your local machine, please follow the directions provided in the README.md
file. If you run into any issues with running the project source code, then feel free to reach out to the author in the course's Discord channel.
This lesson preview is part of the The newline Guide to Modernizing an Enterprise React App course and can be unlocked immediately with a \newline Pro subscription or a single-time purchase. Already have access to this course? Log in here.
Get unlimited access to The newline Guide to Modernizing an Enterprise React App, plus 70+ \newline books, guides and courses with the \newline Pro subscription.
[00:00 - 00:15] Our last module began focusing on the other piece of enterprise level apps that is so important. Not the code itself, but the integration tests instilling confidence in us as developers that the code that we're writing isn't breaking existing functionality.
[00:16 - 00:29] Integration tests are a good, speedy way to test the various pieces of an app work together well. They're the place to test both happy and unhappy code paths, but they're not the only form of testing we should have.
[00:30 - 00:38] Another form of testing is end-to-end testing, edu-ease. The testing that simulates exactly how a user would interact with our app.
[00:39 - 00:54] Even if our unit tests confirm a few components work together, end-to-end tests can reveal broken mission-critical user flows when our whole application runs. They are another line of defense against us introducing buggy code into production.
[00:55 - 01:15] In this module, we will continue reinforcing our confidence in the app by adding a series of end-to-end tests covering the most essential functions in a hardware handler. We'll go over an introduction to the most popular edu-e testing library available today, Cypress, and how it makes testing easy, and what exactly we should test with it.
[01:16 - 01:33] We will go over how to set up end-to-end tests in our application and make them work for us. We'll write tests and mock API calls and test data with Cypress, and we'll use the experimental Cypress Studio feature to help us write tests by demonstrating to Cypress how the test should work.