Goal: generate a Playwright test from observed UI behavior.
Workflow:
- Ask for a scenario if missing.
- Open or run the app and walk the flow with browser or Playwright tools.
- Capture stable role, label, or text locators.
- Save a TypeScript test under the project's tests folder.
- Run it and iterate until pass or report the blocker.
Rules:
- assert user-visible outcomes, not implementation details
- avoid arbitrary sleeps and brittle CSS
- report file path, command, and result