{
  "id": "playwright-regression",
  "capability": "Playwright Regression Testing",
  "claim": "TaskMaster can create small Playwright regression tests with reproducible commands and expected output.",
  "scenario": "Verify that a public demo page exposes a stable heading, primary action, and deterministic state change after user interaction.",
  "testFile": "tests/public-demo.spec.ts",
  "sampleTest": "import { test, expect } from '@playwright/test';\n\ntest('public demo flow changes visible state', async ({ page }) => {\n  await page.goto('https://example.com');\n  await expect(page.getByRole('heading', { name: 'Example Domain' })).toBeVisible();\n});",
  "commands": [
    "npm install --save-dev @playwright/test",
    "npx playwright install chromium",
    "npx playwright test tests/public-demo.spec.ts --project=chromium"
  ],
  "expectedOutput": {
    "status": "passed",
    "artifacts": ["test output", "trace or screenshot when useful"],
    "notes": "Protected flows require requester-supplied test credentials."
  },
  "reviewChecklist": [
    "Selectors use roles/text where practical.",
    "Assertions cover observable behavior.",
    "Command is reproducible from a clean checkout.",
    "Known limitations are reported."
  ]
}
