Skip to content

348 — should fail forgot password when new password is short

Description

Verifies that the reset-password page enforces the minimum password length and shows the "password too short" warning when the user enters a short value.

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. Enter tes (3 characters) into the new password field.
  3. Enter tes into the confirm-password field.
  4. Click the "Reset password" button. Expected: the form does not submit and a short-password warning is shown next to the password field.
  • Spec: playwright/tests/integration/login.spec.ts (line 164)