Skip to content

346 — should test forgot password function

Description

Verifies the full happy-path of the password-reset flow: opening the reset link from the email, setting a new password, and being able to log in with the new password afterwards.

Preconditions

  • Signed-out browser.
  • An existing test account exists and the forgot-password flow has already been initiated (the forgotPasswordFlow fixture has signed up the user and received a reset email containing 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 test-password2 into the confirm-password field.
  4. Click the "Reset password" button. Expected: a success message confirms the password was reset.
  5. Expected: the user is redirected to the login page.
  6. Log in with the original email and the new password test-password2. Expected: the user lands on the onboarding "Create organization" stage, confirming the new password is accepted.
  • Spec: playwright/tests/integration/login.spec.ts (line 139)