Skip to content

Password reset flow (Playwright)

### ✅ Password reset flow
- **Given** the user account exists
- **And** the user has a verified email
- **When** the user requests a password reset
- **And** the user opens the reset email link
- **And** the user sets a new password
- **Then** the user should be able to log in with the new password
- **And** the old password should no longer work
import { test } from '@playwright/test';
import { story } from 'executable-stories-playwright';
test("Password reset flow", async ({}, testInfo) => {
story.init(testInfo);
story.given("the user account exists");
story.given("the user has a verified email");
story.when("the user requests a password reset");
story.when("the user opens the reset email link");
story.when("the user sets a new password");
story.then("the user should be able to log in with the new password");
story.then("the old password should no longer work");
});