Skip to content

347 — should fail forgot password when added wrong confirm password

Description

Verifies that the reset-password page blocks submission when the new password and its confirmation don't match, showing a "passwords do not match" warning.

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 test-password2 into the new password field.
  3. Enter sdoifdsfsd (a different value) into the confirm-password field.
  4. Click the "Reset password" button. Expected: the form does not submit and a "passwords do not match" warning is shown.
  • Spec: playwright/tests/integration/login.spec.ts (line 153)