agentic-playwright-suite
CLAUDE.md10 starsChanged 55 days agoMITView on GitHub
End to end, API and visual regression test suite for Automation Exercise, built with Playwright and TypeScript. Yarn 4 through Corepack; there is no global install. Invoke everything with yarn. Browser interaction during development goes through the two MCP servers in .mcp.json (playwright-test for authoring, playwright for exploration), not a direct yarn playwright <args> invocation; see .claude/skills/playwright-mcp/SKILL.md. The full list, with the headed, UI, debug and report variants, is in docs/architecture.md. Base URL defaults to https://automationexercise.com. Override with E2E_BASE_URL. The…
In this repository4 other files it gives its agents.
- docs/agents.mdAGENTS.md
- playwright-mcpSkill
- playwright-pageobject-testingSkill
- playwright-visual-regressionSkill
The file
We split this CLAUDE.md into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 65
Start with playwright-test-manager for any session or coverage question: it owns the cycle and delegates to the four specialists.
≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agentic Playwright Suite
End to end, API and visual regression test suite for Automation Exercise, built with Playwright and TypeScript.
Tech Stack
- Node.js 20+ + Yarn 4 via Corepack (
yarn.lockis the only lockfile; CI runsyarn install --immutable) - TypeScript 5: strict mode
- Playwright: Chromium and WebKit for the functional suite, Chromium only for visual regression, fully parallel runs
- Allure: reporting, published to GitHub Pages with trend history
Environment
Yarn 4 through Corepack; there is no global install. Invoke everything with yarn. Browser
interaction during development goes through the two MCP servers in .mcp.json
(playwright-test for authoring, playwright for exploration), not a direct
yarn playwright <args> invocation; see .claude/skills/playwright-mcp/SKILL.md.
Commands
| Command | Purpose |
yarn test:e2e | Run all functional E2E tests |
yarn test:api | Run all API tests |
yarn test:vr | Run all visual regression tests |
yarn docker:vr / yarn docker:vr:update | Run or regenerate baselines in the image CI uses |
yarn typecheck, yarn lint, yarn stylecheck | The three static checks. All must be clean |
The full list, with the headed, UI, debug and report variants, is in
docs/architecture.md.
Base URL defaults to https://automationexercise.com. Override with E2E_BASE_URL.
Project Structure
tests/ Functional E2E spec files (*.spec.ts), one directory per feature area
api-tests/ API spec files (*.api.spec.ts), one per resource area, no browser
vr-tests/ Visual regression spec files (*.vr.spec.ts) + baseline snapshots
specs/ Test plans (Markdown) + STATUS.md + seed.spec.ts
utils/
pageObjects/ Page object classes, BaseAppPage (pages) / BaseComponentPage (modals)
apiClients/ API client classes, one per resource area, wraps `request`
fixtures/ Custom Playwright fixtures (account lifecycle, third party blocking)
testData.ts Unique data generators
url.ts URL constants
playwright.config.ts Playwright configuration (e2e-chromium, e2e-webkit, api, seed, visual-regression projects)
.github/workflows/ CI pipeline: resolve-pr-run, prepare-playwright-image, static-checks,
e2e-chromium, e2e-webkit, visual-regression, api, publish-dashboard, ci-gateWriting Tests
The coding standard is in the skills, not here. Both load automatically for the files they govern: page objects and specs, screenshots.
Persistent State
specs/STATUS.md — coverage, findings, open decisions. Read it at the start of any session.
Reasoning behind the architecture is in docs/decisions.md.
Agent System
Start with playwright-test-manager for any session or coverage question: it owns the cycle and delegates to the four specialists.
| Agent | Role | Source |
playwright-test-manager | Scope, gates, the whole cycle | hand-written |
playwright-test-planner | Explores the live app, writes plans | init-agents |
playwright-test-generator | Implements one case at a time | init-agents |
playwright-test-reviewer | Read-only convention audit | hand-written |
playwright-test-healer | Diagnoses failures, edits specs | init-agents |
Planner, generator and healer are regenerated after a Playwright upgrade with
npx playwright init-agents --loop=claude; re-append the project rules section each one ends with.
Slash commands in .claude/commands/ invoke them: /coverage, /plan, /implement, /review, /heal, /cycle, /baseline, /triage.
CI/CD
GitHub Actions (.github/workflows/ci.yml), stages build → check → end2end:
resolve-pr-run— on push tomain, finds the pull request run that already tested the same filesprepare-playwright-image— builds and pushes the execution image every later job runs insidestatic-checks— typecheck, lint, format; gates everything after ite2e-chromium,e2e-webkit,visual-regression,api— in parallel on pull requests; onmainonly whenresolve-pr-runfinds nothing to reusepublish-dashboard— merges the reports, from the reused run or this one, and deploys to Pages,mainonlyci-gate— reads every other job's result; the only check branch protection requires
A failed run is repeated with Re-run failed jobs on a pull request, and with Run workflow on main,
never a partial re-run there. main takes no direct pushes. Adding a job means adding it to the
gate's needs. The reasoning behind each of these is in docs/pipeline.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

