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
From the course: End-to-End JavaScript Testing with Cypress.io
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
-
-
-
-
Installing and running Cypress2m 14s
-
Writing and running Cypress tests8m
-
(Locked)
Testing text inputs7m 53s
-
(Locked)
Selecting elements8m 20s
-
(Locked)
Element aliasing6m 39s
-
(Locked)
Working with command results5m 43s
-
(Locked)
Using beforeEach4m 57s
-
(Locked)
Setting a base URL3m 29s
-
(Locked)
Challenge 1: Writing your own tests1m 46s
-
(Locked)
Solution 1: Writing your own tests6m 38s
-
-
-
-