mcp-playwright
mcp-playwright copied to clipboard
How to Generate TypeScript Playwright Scripts with Playwright MCP
Feature Description
Goal: Document the end-to-end process for generating TypeScript Playwright scripts via Playwright MCP tailored to a specific Playwright framework profile.
Scope
1. Prerequisites: Outline required tools, MCP configuration, and framework selection steps. 2. Script Scaffolding: Detail how to invoke MCP to produce TypeScript test skeletons aligned with the chosen framework’s conventions. 3. Configuration Alignment: Explain syncing generated scripts with existing Playwright config (e.g., test directory, reporter, fixtures). 4. Execution Workflow: Provide commands for running, debugging, and iterating on the generated scripts within the targeted framework setup. 5. Validation: Include guidance for verifying script compatibility (linting, type checks, sample runs).
Acceptance Criteria
- Documentation lives with existing MCP integration guides.
- Examples use TypeScript and the selected Playwright framework structure.
- Includes troubleshooting tips for common MCP or framework mismatches.