Two step checkout (Vitest)
Generated output
Section titled “Generated output”### ✅ Two step checkout
- **Given** the user has items in the cart- **When** the user enters shipping information- **And** the user selects a delivery option- **And** the user enters payment information- **And** the user confirms the order- **Then** the order should be created- **And** a confirmation email should be sentVitest code
Section titled “Vitest code”it("Two step checkout", ({ task }) => { story.init(task); story.given("the user has items in the cart"); story.when("the user enters shipping information"); story.when("the user selects a delivery option"); story.when("the user enters payment information"); story.when("the user confirms the order"); story.then("the order should be created"); story.then("a confirmation email should be sent");});