← Files Web App QA & Release CopilotARCHIVED FILE
skills/debug-flaky-tests/SKILL.md
1.54 KB · Dec 4, 2026 · 00:31 UTC
--- name: debug-flaky-tests description: Diagnose nondeterministic browser/CI tests without hiding real failures. --- # Debug Flaky Tests **Use when:** Playwright tests fail intermittently, differ across machines or require repeated retries. ## Workflow 1. Collect reproducible failed runs, retries, traces, console/network output, CI timing and worker settings. 2. Classify race conditions, shared state, data collisions, clock dependence, network variability, animation, unstable locators and environment gaps. 3. Form competing hypotheses, use a narrow reproduction loop and change one variable at a time. 4. Repair synchronization with web-first assertions, isolated fixtures and deterministic state; review whether increased timeouts merely hide an issue. 5. Re-run the affected test across multiple workers/repeats and relevant browser projects; capture pass/fail counts and environment settings. 6. If unresolved, quarantine only with explicit issue owner, risk and exit criterion; do not silently delete the test. ## Non-negotiable checks - A passing retry does not prove a flaky bug is fixed. - Do not weaken assertions solely to make CI green. ## Deliverable Failure classification, root-cause evidence, minimal fix and repeat-run results. ## References - Read `../../references/playwright-practices.md` when relevant. - Read `../../references/evidence-model.md` when relevant. Only claim tests, browser access, scans, deployments or specialist execution supported by actual tool evidence. Retain original user constraints and avoid unsolicited code changes.
SHA-256: 38a616c49c2eb0e5be276a8f1274de936e4db009e4b28b54ae04a128b97de353