lecture 9 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

Here is a login test that most beginners write, and it hides a serious problem:

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 →