web_generate_e2e_harness
Generates Playwright and Cypress end-to-end test suites from a target site or local directory by extracting routes, forms, and API schemas, plus network mocks, flow simulator, and runner.
Instructions
Extracts client routes, forms, and API schemas to automatically synthesize Playwright and Cypress end-to-end integration test suites, dynamic network mock handlers, an interactive flow simulator, and standalone execution rig.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | Target website URL or local directory path | |
| mockApis | No | Generate network mock route handlers and fixtures (default: true) | |
| framework | No | Testing framework to synthesize (playwright, cypress, or both; default: both) | |
| outputDir | No | Target directory for E2E harness (default: ./e2e_harness) | |
| generateRunner | No | Generate standalone run_e2e_rig.mjs execution script (default: true) | |
| generateVisualizer | No | Generate interactive standalone e2e_flow_simulator.html (default: true) |