Add e2e tests with cypress to a React application

0
Language

Access

Free

Certificate

Free

Level

Beginner

Learn how to add e2e tests with cypress.io to an existing React app. Write resilient tests, debug API responses, and enhance your development process. Join now!

Add your review

Imagine the following.

You join a new project and after getting access to the repo you notice that there’s no tests.

You decide to ask the team whether they are in different repo or something and unfortunately the answer is:

????

In this collection we’re going to learn how to add e2e tests with cypress.io to an existing React app in order to do two things:

In less than 20 minutes we’re going to go through:

and much more!

Course Content

Adding cypress to an existing project in order to start writing e2e tests

Write a basic cypress test to ensure that the app is not entirely broken

Enable intelligent code completion for cypress tests in VSCode

Use data-cy property to select elements in cypress tests to write more resilient e2e tests

Add a beforeEach function to cypress tests to avoid copying and pasting needless code

Test a search input in an e2e test with cypress

Use “Cypress Driven Development” in order to add a feature to a React app

Use cypress UI in order to debug an API response

Use cy.server() and cy.route() to control API response in a cypress test

Use cy.only in order to run only a single test in a cypress test suite

Use cy.skip in order to skip a test in a cypress suite

Change a viewport width and height in a cypress test

User Reviews

0.0 out of 5
0
0
0
0
0
Write a review

There are no reviews yet.

Be the first to review “Add e2e tests with cypress to a React application”

×

    Your Email (required)

    Report this page
    Add e2e tests with cypress to a React application
    Add e2e tests with cypress to a React application
    LiveTalent.org
    Logo
    LiveTalent.org
    Privacy Overview

    This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.