From the course: End-to-End JavaScript Testing with Cypress.io

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Writing your first Cypress test

Writing your first Cypress test

From the course: End-to-End JavaScript Testing with Cypress.io

Start my 1-month free trial

Writing your first Cypress test

- [Instructor] So now, we're back in our test file. And since this is our first test, we're going to be testing something very simple. We're going to check if a heading on our site contains the right text. And this is probably a little contrived, but the main point here is for us to see the basic syntax of a Cypress test. So, this will do nicely for now. Now, since one of the main use cases for Cypress is to test the functionality of existing applications, I've created a very simple React application for you to run locally and point your tests at. So, if you haven't already, you should download this test application from the site. So, once you've downloaded the application, in order to run it, you just need to open up a terminal. Again, I'm using VS codes built-in terminal here. And after making sure that you're in the directory of the app, type npm run start, and hit enter. And your application should launch without a…

Contents