Problem
E2E tests are crucial but painful to set up. Most teams ship without them, then a regression breaks billing in production. "Write E2E tests" lives at the bottom of every backlog because the setup cost is high.
Proposal
`grit init` produces a working E2E test suite:
- Playwright configured for desktop / web / admin clients
- Login fixture seeded automatically (uses the seed admin user)
- Per-resource happy-path tests generated alongside the resource:
- Test runs against a throwaway Postgres (Docker) — no shared state
- CI integration with GitHub Actions ships in the template
`grit generate resource` adds a corresponding `.e2e.spec.ts` file.
Why this is differentiating
Grit apps shipped with E2E coverage from line one are categorically more reliable than apps where E2E is bolted on later. Reliability is a sales argument.
Acceptance
- A fresh `grit init` repo runs `pnpm test:e2e` green out of the box
- Adding a new resource adds new passing E2E tests automatically
- CI runs the full suite in <5 min
Problem
E2E tests are crucial but painful to set up. Most teams ship without them, then a regression breaks billing in production. "Write E2E tests" lives at the bottom of every backlog because the setup cost is high.
Proposal
`grit init` produces a working E2E test suite:
`grit generate resource` adds a corresponding `.e2e.spec.ts` file.
Why this is differentiating
Grit apps shipped with E2E coverage from line one are categorically more reliable than apps where E2E is bolted on later. Reliability is a sales argument.
Acceptance