You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Trinity frontend currently has zero automated test coverage. There is no unit test runner, no E2E tooling, and (until PR #553) no CI workflow that even built the frontend on PRs. This is a project-wide gap that affects every UI change, not a #67-specific concern — surfacing it as a P2 ticket.
Summary
The Trinity frontend currently has zero automated test coverage. There is no unit test runner, no E2E tooling, and (until PR #553) no CI workflow that even built the frontend on PRs. This is a project-wide gap that affects every UI change, not a #67-specific concern — surfacing it as a P2 ticket.
Current state
npm run check:tokens(added #553)frontend-build.yml(added #553)npm ci && npm run buildtsconfig, novue-tsc)src/frontend/package.jsonlists novitest,jest,@vue/test-utils,playwright,cypress, or@testing-library/*dependency.Proposed additions
Phase 1 — Vitest for unit + component tests
vitest,@vue/test-utils,jsdom(orhappy-dom)vitest.config.jsco-located withvite.config.jscomposables/useFormatters.js(formatters, color helpers)utils/syncHealth.js(status classification)stores/agents.js,stores/auth.js)StatusIndicator.vue,CapacityMeter.vue, status badges)npm run testandnpm run test:watchscriptsfrontend-build.yml)Phase 2 — Playwright for E2E + visual regression
@playwright/teste2e/directory with smoke flows: login, agent list, agent detail, schedule createPhase 3 — Type checking
vue-tscnpm run typecheckscript in CIAcceptance
vue-tscpasses on at least the new test files andtailwind.config.jsfrontend-build.yml(or sibling workflows)src/frontend/README.mdexplaining how to run each layerWhy P2 not P1
Cross-references
.claude/agents/test-runner.mddescribes the backend test runner. A frontend equivalent should be added once Phase 1 lands.