projx / e2e
CLAUDE.md71 starsChanged 4 months agoMITView on GitHub
Stack-scoped notes. The root ../CLAUDE.md carries the TDD discipline — read both, they compose. This directory is a projx template: it must stay green on the projx repo (root §"Per-template gates") and is copied into scaffolded projects. It drives the real frontend/ against a real backend — it does not replace the backends' own integration tests.
- Reads credentials
In this repository15 other files it gives its agents.
- admin-panel/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- cli/CLAUDE.mdCLAUDE.md
- express/CLAUDE.mdCLAUDE.md
- fastapi/CLAUDE.mdCLAUDE.md
- fastify/CLAUDE.mdCLAUDE.md
- go/CLAUDE.mdCLAUDE.md
- infra/CLAUDE.mdCLAUDE.md
- laravel/CLAUDE.mdCLAUDE.md
- mobile/CLAUDE.mdCLAUDE.md
- nextjs/CLAUDE.mdCLAUDE.md
- rust/CLAUDE.mdCLAUDE.md
- scripts/CLAUDE.mdCLAUDE.md
- vitejs/CLAUDE.mdCLAUDE.md
- projxSkill
The file
Files
e2e — Playwright E2E (projx template)
Stack-scoped notes. The root
../CLAUDE.mdcarries the TDD discipline — read both, they compose.This directory is a projx template: it must stay green on the projx repo (root §"Per-template gates") and is copied into scaffolded projects. It drives the real
frontend/against a real backend — it does not replace the backends' own integration tests.
Stack
- Framework —
@playwright/teston TypeScript - A11y —
@axe-core/playwright - Package manager — pnpm
- Config —
playwright.config.ts
Layout & config (verified)
| Path | What it holds |
playwright.config.ts | testDir: './frontend', projects, webServer |
frontend/ | The spec tree (the configured testDir) |
eslint.config.js, tsconfig.json, .prettierrc | Tooling |
- Projects — three browsers:
chromium,firefox,webkit. webServer— booted only locally (process.env.CI ? undefined : localWebServers()); CI runs against an already-running/external backend + frontend. Don't add asleep— wait on the health endpoint. It resolves the frontend + backend sibling directories from their.projx-componentmarkers at load time (resolveSibling) and picks the boot command by backend kind — never hard-code../frontend/../fastapi(root../CLAUDE.md§"Never hard-code a component directory").
Conventions
- Assert end-state, not implementation — verify the row appears, not that a POST fired. Mock-free.
- No
page.waitForTimeout(...)— wait on a visible element or network signal. - Query by role / label / text, never
data-testidunless nothing else works. - No
NODE_ENV === 'test'branches in app code — tests exercise the production path; behavior diverges via injected config, never env-name checks (root §"No env-name checks"). - Auth via the real endpoint or a backend test helper — never a hardcoded JWT.
Scripts / gates (root §"Per-template gates")
pnpm test→playwright test(full matrix) ·pnpm test:frontend→--project=chromium(fast loop) ·pnpm test:ui→--ui·pnpm install-browsers→ install chromium/firefox/webkit.- Gate:
pnpm format(prettier) →pnpm lint(eslint) →pnpm typecheck(tsc --noEmit). No coverage gate here (the suite is the assertion).
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.

