Reference
Deep-dive documentation for everything beyond the cookbooks. Each reference is self-contained with its own table of contents — load only what you need.
The content here is synced from
.github/skills/playwright-test/references/
at build time — the same files Claude Code uses as its skill knowledge
base. Edits there flow into this site on the next deploy.
Index
| Topic | When to read |
|---|---|
| Writing Tests | Locators, assertions, structure, anti-patterns |
| Advanced Config | Every playwright.config.ts option that matters |
| CLI Reference | All useful CLI flags and recipes |
| Fixtures | Custom fixtures, scopes, composition — full API |
| Network | Route mocking, HAR recording, request inspection |
| Authentication | All four auth strategies in depth |
| Debugging | Trace viewer, UI mode, Inspector, flake hunting |
| CI / CD | GitHub Actions, GitLab, sharding, Docker |
| Reporters | HTML, JUnit, JSON, custom reporters |
| MCP Integration | Playwright MCP + Chrome DevTools MCP |
How to use these docs as a reference, not a tutorial
The cookbooks teach. The references answer. If you're stuck:
- Find the topic above
- Use the page's table of contents to jump to the section
- Copy the example, adapt to your case
Each reference ends with a "common mistakes" or "anti-patterns" table — worth skimming when you're hunting a subtle bug.