What problem does it solve?
This skill removes friction when running end-to-end Playwright tests in a monorepo by automatically detecting the correct test project, applying optimized wait strategies, performing pre-flight environment checks, and producing machine-readable results for downstream analysis.
Core Features & Use Cases
- Project Auto-Detection: Resolve exact names, aliases, or file/path matches using apps/web/e2e/e2e-projects.json so the correct Playwright --project flag is selected.
- Pre-flight Safety Checks: Validate database connection counts and optionally restart the test database container to avoid pool exhaustion before running tests.
- Structured Reporting & Triage: Execute pnpm test:e2e with the detected project, capture output, generate a YAML result with counts and categorized failures, and support follow-up analysis such as batch approvals or deeper diagnostics.
- Use Case: Run targeted suites like admin-tests from CI or developer machines, automatically recover from common infra issues, and feed results into an e2e-analyze workflow.
Quick Start
Run the e2e-run skill with the target name to auto-detect the Playwright project, perform pre-flight checks, execute the tests, and write a structured YAML summary to apps/web/e2e-run-result.yaml.