Playwright Coverage Gaps
Map all testable surfaces, identify tested vs missing, prioritize by business impact.
Steps
Map application surface — routes/pages (scan Next app/, React Router, Vue Router), interactive components (forms/modals/dropdowns/tables, complex-state ones), API endpoints (route files/controllers), critical user flows (auth, checkout, onboarding, core features).
Map existing tests — scan all *.spec.ts/.js: which routes (page.goto() calls), which components (locator usage), which endpoints (mocked/hit), tests per area.
Coverage matrix — table of Area | Route | Tests | Status (✅ Covered / ⚠️ Partial / ❌ Missing).
Prioritize gaps — Critical (auth, payment, core) → test first; High (user-facing CRUD, search, nav); Medium (settings, edge cases); Low (static pages).
Suggest a test plan — per gap: number of tests, which template, effort (quick/medium/complex), grouped by priority.
Optionally auto-generate — ask "Generate tests for top N gaps?"; if yes, generate per gap with the recommended template.
Output
Coverage matrix, coverage % estimate, prioritized gap list with effort estimates, option to auto-generate.
1---2name: playwright-coverage-gaps3description: Use when analyzing test coverage gaps ("test coverage", "what's not tested", "coverage gaps", "missing tests", "what needs testing").4tags: [playwright, test-coverage, coverage-gaps, e2e, routes, prioritization, test-planning]5source: alirezarezvani/claude-skills6derived_from: engineering-team/playwright-pro/skills/coverage7metadata:8 source: https://skillmd.com/skills/aashutosh396/playwright-coverage-gaps9---1011# Playwright Coverage Gaps1213Map all testable surfaces, identify tested vs missing, prioritize by business impact.1415## Steps16171. **Map application surface** — routes/pages (scan Next `app/`, React Router, Vue Router), interactive components (forms/modals/dropdowns/tables, complex-state ones), API endpoints (route files/controllers), critical user flows (auth, checkout, onboarding, core features).18192. **Map existing tests** — scan all `*.spec.ts/.js`: which routes (`page.goto()` calls), which components (locator usage), which endpoints (mocked/hit), tests per area.20213. **Coverage matrix** — table of Area | Route | Tests | Status (✅ Covered / ⚠️ Partial / ❌ Missing).22234. **Prioritize gaps** — Critical (auth, payment, core) → test first; High (user-facing CRUD, search, nav); Medium (settings, edge cases); Low (static pages).24255. **Suggest a test plan** — per gap: number of tests, which template, effort (quick/medium/complex), grouped by priority.26276. **Optionally auto-generate** — ask "Generate tests for top N gaps?"; if yes, generate per gap with the recommended template.2829## Output30Coverage matrix, coverage % estimate, prioritized gap list with effort estimates, option to auto-generate.