Skip to content

Password reset flow (Vitest)

### ✅ 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
it("Password reset flow", ({ task }) => {
story.init(task);
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");
});