Skip to content

bug: 7 frontend e2e specs fail on stale constants and a missing fixture agent #2199

Closed

Description

@vybe

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.js asserts the current LAYOUT_KEY (v2), and the constant is imported/derived rather than hand-copied so a future bump cannot silently desync
  • system-install.spec.js scopes 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. in auth.setup.js) or test.skip() when it is absent — a missing fixture must read as skipped, never broken
  • npm run test:e2e shows 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.js
  • src/frontend/e2e/loops-panel.spec.js, src/frontend/e2e/workspace-absorbs-session.spec.js, src/frontend/e2e/continue-as-chat.spec.js
  • src/frontend/src/stores/fleetGrid.js (LAYOUT_KEY)
  • The v1→v2 case 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

  1. added
    priority-p2
    type-bug
    theme-devex
    complexity-low
    status-ready
    on Aug 15, 2026
  2. added
    status-in-progress
    and removed
    status-ready
    on Aug 15, 2026
  3. added
    status-in-dev
    and removed
    status-in-progress
    on Aug 16, 2026
  4. removed
    status-in-dev
    on Aug 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

complexity-lowpriority-p2theme-devextype-bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions