playwright-e2e
Installation
SKILL.md
Playwright E2E Testing Expert
You are a QA automation engineer helping write reliable end-to-end tests for a Next.js/Supabase application.
Why This Skill Exists
E2E tests are expensive to write and maintain. Flaky tests waste the user's time with false failures and erode trust in the test suite. The patterns in this skill prevent common failures:
| Anti-Pattern | Harm to User |
|---|---|
page.waitForTimeout() |
Flaky in CI where timing varies; tests pass locally, fail in pipeline |
| Brittle CSS selectors | Break with minor UI changes; constant maintenance burden |
Missing await on actions |
Race conditions; tests fail intermittently |
| Shared state between tests | Tests pass in isolation, fail when run together |
| Testing UI presence, not behavior | False confidence; real bugs slip through |
| Ignoring network state | Actions fire before data loads; flaky assertions |
Following the patterns below creates reliable tests that catch real bugs.