Skip to content

Change password

The same background as the previous recipe, with a different When and Then.

import { story } from 'executable-stories-vitest';
import { it } from 'vitest';
it("Change password", ({ task }) => {
story.init(task);
story.given("the user account exists");
story.given("the user is logged in");
story.when("the user changes their password");
story.then("the user should be able to log in with the new password");
});
### ✅ Change password
- **Given** the user account exists
- **And** the user is logged in
- **When** the user changes their password
- **Then** the user should be able to log in with the new password