playwright-best-practices
Installation
SKILL.md
Playwright Best Practices
Use this for browser-level tests that should behave like a reliable user.
Project Fit Check
Before writing tests:
- Read existing Playwright config, fixtures, helpers, test ids, auth setup, route mocks, and CI commands.
- Follow the repo's locator strategy.
- Reuse existing page objects/helpers only when they reduce duplication.
- Keep assertions tied to user-visible behavior and accessibility semantics.
- Do not add sleeps to hide race conditions.