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
forgotPasswordFlowfixture has signed up the user and received a reset email containingresetLink).
Steps¶
- Open the reset link from the email in the browser. Expected: the "Reset password" page is shown.
- Enter
test-password2into the new password field. - Enter
test-password2into the confirm-password field. - Click the "Reset password" button. Expected: a success message confirms the password was reset.
- Expected: the user is redirected to the login page.
- 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.
Related¶
- Spec:
playwright/tests/integration/login.spec.ts(line 139)