Document status changes (Cypress)
Generated output
Section titled “Generated output”### ✅ Document status changes
- **Given** a document exists with status "draft"- **When** the user submits the document- **Then** the document status should change to "submitted"- **And** an audit log entry should be createdCypress code
Section titled “Cypress code”import { story } from 'executable-stories-cypress';
it("Document status changes", () => { story.init(); story.given('a document exists with status "draft"'); story.when("the user submits the document"); story.then('the document status should change to "submitted"'); story.then("an audit log entry should be created");});