Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Playwright Best Practices?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/alleneubank-playwright-best-practices)
---
name: playwright-best-practices
description: Use when writing or modifying Playwright tests (.spec.ts, .test.ts with @playwright/test imports).
---
# Playwright Best Practices
- **Use `--reporter=line` or `--reporter=dot` for CLI test runs** from an agent; the default reporter's verbose output consumes the context window.
## Anti-Patterns
- Asserting a `page.route` handler fired — a change detector; assert the DOM the user sees (`testing-best-practices`)
- Registering `page.route` mocks after navigation — set them up before `goto`
- Retry loops around assertions — web-first assertions already retry