BeginnerPW-FORM-00115 minutesPlaywright

Assert registration validation

Registration must block an invalid email before a record is created.

  • forms
  • validation

Objective

What to automate

Submit the customer form with an invalid synthetic email and verify its validation state.

Preconditions and test data

Preconditions

  • Use a fresh isolated Practice Lab browser context.
  • Open the fixture identified by FX-FORM-001.

Test data

  • email: not-an-email

Expected result

An accessible validation message is shown and no success ID appears.

Progressive hints

Hint 1

Find the customer registration form first.

Hint 2

Use the Email label to clear and fill.

Hint 3

Assert the error summary or invalid field state.

I’ve tried it — show solution
  1. Find the customer registration form first.
  2. Use the Email label to clear and fill.
  3. Assert the error summary or invalid field state.