Skip to content

Report shows fields in order

story.and() in the middle of a Then block, where auto-And would have applied anyway.

import { story } from 'executable-stories-vitest';
import { it } from 'vitest';
it("Report shows fields in order", ({ task }) => {
story.init(task);
story.given('a report exists for account "A1"');
story.when("the user downloads the report");
story.then('the report header should be "Account Report"');
story.and('the first column should be "Date"');
story.and('the second column should be "Amount"');
});
### ✅ Report shows fields in order
- **Given** a report exists for account "A1"
- **When** the user downloads the report
- **Then** the report header should be "Account Report"
- **And** the first column should be "Date"
- **And** the second column should be "Amount"