Testing Web Apps with Cypress

Form Validation Exercise

Steve Kinney

Steve Kinney

Temporal
Testing Web Apps with Cypress

Check out a free preview of the full Testing Web Apps with Cypress course

The "Form Validation Exercise" Lesson is part of the full, Testing Web Apps with Cypress course featured in this preview video. Here's what you'd learn in this lesson:

Students are instructed to test the form's email and password validation. A correctly formatted email should be the only value accepted by the email field. The password field cannot be empty.

Preview
Close

Transcript from the "Form Validation Exercise" Lesson

[00:00:00]
>> Your job is to look to see there's actually an email address, to make sure the password is present when the email has been filled in, right? And then to look at that sign up button as well and make sure we're navigating to the page there as well.

[00:00:15]
So try some of these out for yourself too. And so you can, whichever method is most appealing to you, if you like checking the property, great, if you wanted to read the message, also fine. But go through and figure out how to make sure that the email address is really an email address.

[00:00:32]
And that they do fill an email address and they hit submit, then we should yell at them that they need to include a password as well.

Learn Straight from the Experts Who Shape the Modern Web

  • In-depth Courses
  • Industry Leading Experts
  • Learning Paths
  • Live Interactive Workshops
Get Unlimited Access Now