illustration for Add e2e tests with cypress to a React application

Add e2e tests with cypress to a React application

Instructor

Tomasz Łakomy
18m closed-captioning
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
4.3
276
people completed
Bookmark
Download
RSS

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:

We don't have any tests, we didn't have the time.

😐

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:

  • 🌟 Ensure that our app currently works as intended
  • 🌟 Allow us to add features to it with a technique called "Cypress Driven Development"

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

  • ⚡️Adding cypress.io setup to an existing project
  • ⚡️Testing search functionality with data-cy properties
  • ⚡️Using "Cypress Driven Development" to add a new feature to an app
  • ⚡️Use Cypress UI to debug an API response
  • ⚡️How to use cy.only and cy.skip in order for us to build our e2e test suite faster

and much more!

Learner Reviews

  • Md. Anam Hossain
    a week ago
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    Learned a lot of basic things, that is useful for any project.

  • Learner
    2 years ago
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    The guy speak really fast and type like a pro. But the content is Ok

  • Learner
    2 years ago
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    I was afraid of how short it is, but still was able to show a good amount of features to use. Also is appreciated that the narrator is clear and concise, not a single "uhmm".

  • debottam31
    2 years ago
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    very primitive examples. I wish there should be some advanced stuff or advanced techniques shown for critical scenarios

  • Jim Pickering
    2 years ago
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    Quick concise, gets the ball rolling with testing. Perfect!

  • Vijaya Chandran Mani
    2 years ago
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    simple examples and quick introduction to basic elements.

Course Content

18m • 12 lessons

    You might also like these resources:

    illustration for Introduction to Cloudflare Workers

    Introduction to Cloudflare Workers

    Kristian Freeman・36m・Course

    Become familiar with the Workers CLI wrangler that we will use to bootstrap our Worker project. From there you'll understand how a Worker receives and returns requests/Responses. We will also build this serverless function locally for development and deploy it to a custom domain.

    illustration for Create an eCommerce Store with Next.js and Stripe Checkout

    Create an eCommerce Store with Next.js and Stripe Checkout

    Colby Fayock・1h 4m・Course

    This is a practical project based look at building a working e-commerce store using modern tools and APIs. Excellent for a weekend side-project for your developer project portfolio

    illustration for Practical Git for Everyday Professional Use

    Practical Git for Everyday Professional Use

    Trevor Miller・1h・Course

    git is a critical component in the modern web developers tool box. This course is a solid introduction and goes beyond the basics with some more advanced git commands you are sure to find useful.