playwright
Installation
SKILL.md
Default output: return only the result, blockers, and required evidence. Omit preambles, process narration, repeated context, confidence scores, and follow-up offers. Use at most five bullets unless a required artifact or schema needs more.
Playwright Test Engineering
Current Versions (Verify Before Use)
npx playwright --version
Check Playwright releases for the latest version.
Core Principles
- Tests should be deterministic. No random data, no time-based assertions, no shared state.
- Prefer user-visible selectors. Use
getByRole,getByText,getByLabelover CSS selectors. - One assertion per test. Test one thing. If it fails, you know exactly what broke.
- Traces are for debugging, not primary detection. A failing test should explain itself; traces help when it doesn't.
- Parallel by default. Use fully-parallel mode. Tests must be isolated.