Eligible customer gets discount (Playwright)
Generated output
Section titled “Generated output”### ✅ Eligible customer gets discount
- **Given** the customer is eligible for discounts- **When** the customer checks out- **Then** a discount should be appliedPlaywright code
Section titled “Playwright code”import { test } from '@playwright/test';import { story } from 'executable-stories-playwright';
test.describe("Feature: Discounts", () => { test.describe("Rule: Discounts apply only to eligible customers", () => { test("Eligible customer gets discount", async ({}, testInfo) => { story.init(testInfo); story.given("the customer is eligible for discounts"); story.when("the customer checks out"); story.then("a discount should be applied"); }); });});