Skip to content

351 — should test required fields

Description

Verifies that the reset-password page surfaces required-field warnings for both the new-password and confirm-password fields when the user submits without entering anything.

Preconditions

  • Signed-out browser.
  • An existing test account exists and the forgot-password flow has already been initiated (the forgotPasswordFlow fixture provides a valid resetLink).

Steps

  1. Open the reset link from the email in the browser. Expected: the "Reset password" page is shown.
  2. Leave the new-password field empty.
  3. Leave the confirm-password field empty.
  4. Click the "Reset password" button. Expected: a required-field warning is shown for the password field. Expected: a required-field warning is shown for the password-confirmation field.
  • Spec: playwright/tests/integration/login.spec.ts (line 208)