BMAD-METHOD/scripts
Caleb c45d4fa875 feat(epic-execute): UI flow execution - Playwright spec generation + run
Second half of the contract execution engine (held on branch per bundle plan).

- generate_playwright_spec: translate ui.flows into a Playwright spec - goto /
  getByTestId click+fill (with getByLabel/getByRole/getByText fallback),
  visible/hidden/text/url assertions, role-based storageState for allowed/
  forbidden checks; persistence is delegated to backend cases
- run_ui_flows: generate the spec, run it via the project's `npx playwright
  test --reporter=json`, and parse results
- parse_playwright_report: read stats.unexpected + failed titles into
  CONTRACT_EXEC_FAILURES for the fix loop
- _pw_locator (testid → label → role → text) and _ts_safe helpers

Tested: spec generation for the canonical "create a quote" allowed flow + a
"viewer cannot" forbidden flow produces correct TS; report parsing handles
pass and fail. Live browser execution needs the real app + browser binaries.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-04 05:42:21 -05:00
..
epic-execute-lib feat(epic-execute): UI flow execution - Playwright spec generation + run 2026-06-04 05:42:21 -05:00
epic-chain.sh feat(scripts): port memory-safe execution and reliability improvements from revive-dev 2026-04-12 11:52:39 -05:00
epic-execute.sh feat(epic-execute): UI contract - ui: harness schema, preflight, test-id planning 2026-06-04 05:28:36 -05:00
uat-validate.sh feat(scripts): port memory-safe execution and reliability improvements from revive-dev 2026-04-12 11:52:39 -05:00