playwright
Installation
SKILL.md
Playwright
Official docs
| Topic | URL |
|---|---|
| Intro | https://playwright.dev/docs/intro |
| Best practices | https://playwright.dev/docs/best-practices |
| Test agents | https://playwright.dev/docs/test-agents |
| CI | https://playwright.dev/docs/ci |
Agent rules
- Role-based locators —
getByRole,getByLabel,getByTestId; avoid brittle CSS/XPath. - Test isolation — each test sets up its own state; no order dependency between specs.
- Wait correctly — prefer auto-waiting assertions (
toBeVisible) over fixedsleep. - Ship gate — agents cannot claim UI done without running Playwright or equivalent browser verify when tests exist.
- Project config — extend existing
playwright.config.ts; do not create parallel config files.