Context
Dashboard has useful Vitest and Testing Library coverage plus a pnpm verify script, but there is no browser automation harness. The OpenAI harness best practice is to make the application UI directly legible to agents through DOM, screenshots, navigation, console errors, and runtime state.
The dashboard also includes visual and canvas-heavy surfaces, especially Pixel Farm, where unit tests alone cannot prove the page renders correctly.
Scope
- Add Playwright or equivalent browser smoke tests under dashboard/app.
- Cover /your-memory connect flow, memory list/detail, analysis panel, and Pixel Farm route.
- Fail on unexpected console errors and failed network requests where appropriate.
- Capture screenshots as artifacts for local debugging.
- Add a Pixel Farm canvas nonblank check.
- Expose a single command, for example pnpm browser:smoke or make verify-dashboard-browser.
Acceptance Criteria
- Browser smoke test starts the dashboard and completes key routes.
- Tests fail on major render errors or console exceptions.
- Pixel Farm canvas is verified as nonblank.
- Screenshots are saved on failure.
- The command is documented in dashboard/app/AGENTS.md.
Effort
~200-500 LoC net.
Context
Dashboard has useful Vitest and Testing Library coverage plus a pnpm verify script, but there is no browser automation harness. The OpenAI harness best practice is to make the application UI directly legible to agents through DOM, screenshots, navigation, console errors, and runtime state.
The dashboard also includes visual and canvas-heavy surfaces, especially Pixel Farm, where unit tests alone cannot prove the page renders correctly.
Scope
Acceptance Criteria
Effort
~200-500 LoC net.