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

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Challenge 1: Writing your own tests

Challenge 1: Writing your own tests

(upbeat music) - [Instructor] All right. So now that we've learned all about the basics of writing Simple Cypress tests and visiting different pages and running tests on those pages, it's time for you to do a challenge. Now, for this challenge, what I've done is I've actually created an extra page, which you can find by going to localhost:5173/challenge1. You do need the starting state of the exercise files for this video in order to find that. And basically, here's how this page is supposed to work. It just contains a simple text input inside it that you're supposed to put your name into, and once you've entered anything, even one character, it will display, underneath this, "Hello," with the name that you've typed into the text input as a value. So your goal here, and the challenge that I'm going to give to you is to simply write tests that will check that this works. So really the only two things that you're going to need to check is you're going to need to make sure that that…

Contents