Are you the author? Sign in to claim
A reusable Playwright E2E test project template, paired with Claude Code agents/skills for planning, generating, and hea
A reusable Playwright E2E test project template, paired with Claude Code agents/skills for planning, generating, and healing tests via the Page Object Model pattern.
npm install
npx playwright install
Set the target application URL, either by editing baseURL in playwright.config.ts or via an environment variable:
BASE_URL=https://your-app.example.com npm test
npm test # run all tests
npx playwright test --ui # interactive UI mode
npx playwright show-report reports/html-report
tests/
├── ui/ # UI test specs
├── api/ # API test specs
└── performance/ # Performance/load test specs
pages/ # Page Object Model classes (locators + interaction methods)
fixtures/ # Reusable setup/teardown
utils/ # Helper functions and constants
config/ # Environment config (BASE_URL, etc.)
test-data/ # Static test data as JSON
__mocks__/api/ # API mock definitions
Locators live only inside Page Object classes under pages/ — there is no separate selectors.ts file. Static values (URLs, emails, sample text) go in test-data/*.json.
Visual regression tests are tagged @visual in the test title.
This template ships with three agents (.claude/agents/) built on the e2e and playwright-cli skills:
| Agent | Use for |
|---|---|
playwright-cli-planner | Explore a page/feature and produce a structured test plan (Page Object design + test scenarios) |
playwright-cli-generator | Turn a test plan or a described flow into working Playwright spec files |
playwright-cli-healer | Debug and fix a failing test |
Invoke them by asking Claude Code to use the agent by name, e.g. "use the playwright-cli-planner agent on https://your-app.example.com/checkout".
package.json name/description for the new project.baseURL in playwright.config.ts (or BASE_URL env var) to the target app.playwright-cli-planner agent against the target app to generate a test plan, then playwright-cli-generator to scaffold specs.1000+ skills curated from Anthropic, Vercel, Stripe, and other engineering teams
Design enforcement with memory — keeps your UI consistent across a project
Detects 37 AI writing patterns and rewrites text with human rhythm across 5 voice profiles
WCAG accessibility audit — automated scanning, manual review, remediation