User updates profile details
One Given, several When steps, one Then.
The test
Section titled “The test”import { story } from 'executable-stories-vitest';import { it } from 'vitest';
it("User updates profile details", ({ task }) => { story.init(task); story.given("the user is logged in"); story.when("the user changes their display name"); story.when("the user changes their time zone"); story.when("the user saves the profile"); story.then("the profile should show the updated details");});import { story } from 'executable-stories-jest';
it("User updates profile details", () => { story.init(); story.given("the user is logged in"); story.when("the user changes their display name"); story.when("the user changes their time zone"); story.when("the user saves the profile"); story.then("the profile should show the updated details");});import { test } from '@playwright/test';import { story } from 'executable-stories-playwright';
test("User updates profile details", async ({}, testInfo) => { story.init(testInfo); story.given("the user is logged in"); story.when("the user changes their display name"); story.when("the user changes their time zone"); story.when("the user saves the profile"); story.then("the profile should show the updated details");});import { story } from 'executable-stories-cypress';
it("User updates profile details", () => { story.init(); story.given("the user is logged in"); story.when("the user changes their display name"); story.when("the user changes their time zone"); story.when("the user saves the profile"); story.then("the profile should show the updated details");});What the report renders
Section titled “What the report renders”### ✅ User updates profile details
- **Given** the user is logged in- **When** the user changes their display name- **And** the user changes their time zone- **And** the user saves the profile- **Then** the profile should show the updated details