Repository navigation
Description
Summary
The frontend e2e suite is red on dev: 15 failed / 93 passed / 11 skipped. Seven of those failures are test-only — stale constants and a missing fixture — and should be fixed so the suite reflects real product state. (The other 8 are genuine product defects, tracked separately.)
Context
Found during an exploratory E2E sweep of dev @ c1cc22bc. All 15 failures were root-caused:
| # | Spec(s) | Cause | Product bug? |
|---|---|---|---|
| 7 | dashboard-type-filter (all) |
hotkey registration race | ✅ yes — tracked separately |
| 1 | dashboard-stats-overflow @640 |
real control/stat overlap | ✅ yes — tracked separately |
| 2 | dashboard-grid-view drag + tidy |
stale spec constant | ❌ no — this issue |
| 1 | system-install preview |
spec strict-mode drift | ❌ no — this issue |
| 4 | loops-panel ×2, workspace-absorbs-session, continue-as-chat |
missing fixture agent | ❌ no — this issue |
1. Stale layout key (2 specs)
src/frontend/src/stores/fleetGrid.js uses LAYOUT_KEY = 'trinity-grid-layout-v2'; e2e/dashboard-grid-view.spec.js still asserts 'trinity-grid-layout-v1', so it reads null and both assertions fail.
The bump landed in 309c9ef1 (grid widget chassis, #2042) and the spec was never updated — git log -S "trinity-grid-layout-v2" on the spec file returns nothing.
2. Strict-mode drift (1 spec)
e2e/system-install.spec.js expects a single match for the previewed agent name; the preview now renders it in 4 places (2 table cells + 2 spans):
strict mode violation: ...getByText('<agent>') resolved to 4 elements
3. Missing fixture agent (4 specs)
All four default to LOOPS_TEST_AGENT / SESSION_TEST_AGENT = testfix, which does not exist on a typical instance. continue-as-chat fails earlier still, with task trigger failed: 404.
Both affordances these specs assert on do exist and were verified manually — the Loops tab renders, and Continue in Workspace → /workspace?agent={name} is present on the Chat tab. The specs are producing false failures.
Acceptance Criteria
-
dashboard-grid-view.spec.jsasserts the currentLAYOUT_KEY(v2), and the constant is imported/derived rather than hand-copied so a future bump cannot silently desync -
system-install.spec.jsscopes its assertion (e.g..first()or a tighter container) so the multi-render preview does not trip strict mode - The four
testfix-dependent specs either seed the fixture agent (e.g. inauth.setup.js) ortest.skip()when it is absent — a missing fixture must read as skipped, never broken -
npm run test:e2eshows 0 failures attributable to test-only causes on a clean instance - Remaining failures, if any, map 1:1 to open product bugs
Technical Notes
src/frontend/e2e/dashboard-grid-view.spec.js,src/frontend/e2e/system-install.spec.jssrc/frontend/e2e/loops-panel.spec.js,src/frontend/e2e/workspace-absorbs-session.spec.js,src/frontend/e2e/continue-as-chat.spec.jssrc/frontend/src/stores/fleetGrid.js(LAYOUT_KEY)- The
v1→v2case is the general hazard: a spec hand-copying a versioned storage key goes green→red silently on the next bump. Worth preferring a shared exported constant.
Activity
test(e2e): derive the grid layout key, make missing fixtures skip hon…
fix(perf): Agent Detail + Workspace stop over-fetching — dedupe, batc…
feat(grid): Executions info tile adopts the scanline loading motion (…
fix(dashboard): pin the view-mode switcher and add a v shortcut to cy…
refactor(ui): retire the Agent Detail voice overlay — Talk is a door …
fix(tests): sweep the tests that drifted from August/September code c…