lecture 11 of 200 completed

Forms and what they refuse

A login test that only tries the correct password would pass on a login that lets anyone in.

What you'll learn

  • How to test what a form accepts and what it refuses
  • Why checking the error message alone is not enough
  • How to list a form's rules before you write any code
  • How to check a checkbox in both directions

Here is a sign-in test that most beginners write. It hides a serious problem.

Reading example. Tidewater Bank is a fictional bank. Its members sign in with an email and a password. You can read these examples here. Your exercises use a different app.

full course

Keep reading with the full course

The Foundations track and the first lessons in each framework are free. This lesson needs full course access. A course plan includes all lessons for Playwright, Cypress and Selenium.

See course plans →