Simulacrum

End-to-end testing

Playwright setup, authoring tests, and CI workflows for Simulacrum-generated apps.

Install

bash
npm init playwright@latest

Patterns

  • Seed data before flows that need accounts
  • Use role-based selectors instead of brittle CSS paths
  • Run smoke tests on preview deployments

CI

Add a GitHub Actions workflow (or equivalent) that installs browsers, runs npx playwright test, and uploads traces on failure.

Keep a small happy-path suite green on every PR; expand coverage iteratively.