What problem does it solve?
Flaky end-to-end tests erode trust in CI pipelines and waste developer time on false failures. This Skill systematically identifies which Playwright E2E tests are flaky, diagnoses the root cause, and applies fixes so tests pass consistently.
Core Features & Use Cases
- Flakiness Detection: Runs each E2E test 10 times with retries disabled to reliably surface intermittent failures.
- Root Cause Investigation: Re-runs failing tests with Playwright browser debug logging to uncover timing issues, race conditions, animation interference, and state leakage.
- Guided Fixes and Verification: Applies Playwright best practices (stable selectors, explicit waits, test isolation), updates snapshot baselines when needed, and re-runs tests 10 times to confirm stability.
- Use Case: A developer notices
main.spec.ts fails intermittently in CI. They invoke this Skill on that file, which reproduces the flakiness locally, identifies a missing visibility wait, fixes the test, and verifies 10 consecutive passing runs.
Quick Start
Deflake the E2E test file main.spec.ts by running it repeatedly, investigating any failures, and fixing the flaky test.