Skip to content

fix: de-flake grow-flow smoke test + Dashboard mobile label squeeze#82

Merged
mvalancy merged 1 commit into
developfrom
fix/flaky-test-and-dashboard-mobile
Jun 16, 2026
Merged

fix: de-flake grow-flow smoke test + Dashboard mobile label squeeze#82
mvalancy merged 1 commit into
developfrom
fix/flaky-test-and-dashboard-mobile

Conversation

@mvalancy

Copy link
Copy Markdown
Member

Flaky test (grow-flow smoke gate)

  • Settle wait: poll a node's box until the force layout stops moving before clicking the "+" grow icon (the icon rides on its node — clicking mid-simulation was the flake).
  • Retry the click→hint with toPass instead of failing on one swallowed click.
  • API-based deltas: count create/undo via GraphQL (DB truth) not the DOM .node count (viewport culling skews it); still assert the user sees the named node.
  • Result: 3/3 clean reseed+run cycles; smoke gate 5/5.

Dashboard (mobile)

  • Status breakdown used grid-cols-3 unconditionally → at 390px the labels collapsed to ~4px and vanished. Now grid-cols-2 sm:grid-cols-3.

Test guard

  • mobile-views now also fails on any multi-char label squeezed under ~12px (verified red when the Dashboard fix is reverted). All other views audited at 390px against a 19-node graph: no overflow, no squeeze.

…hones

Flaky test (the grow-flow smoke gate):
- Wait for the force layout to SETTLE (poll a node's box until it stops moving)
  before clicking the "+" grow icon — the icon rides on its node, so clicking it
  mid-simulation (or while nodes overlap) was the historical flake.
- Retry the click→"Click empty space to grow" hint via expect.poll/toPass instead
  of failing on a single swallowed click.
- Base the +1/-1 create/undo assertions on the GraphQL API (DB truth) instead of
  the DOM .node/.edge count, which viewport culling makes unreliable; still assert
  the user SEES the newly named node. 3/3 clean reseed+run cycles; smoke 5/5.

Dashboard view (mobile):
- The status breakdown used grid-cols-3 unconditionally; at 390px each card got so
  narrow the status labels ("Planned"/"In Progress"/…) collapsed to ~4px and
  vanished. Now grid-cols-2 sm:grid-cols-3.

Test guard:
- mobile-views now also fails on any multi-char label squeezed under ~12px
  (verified: reverting the Dashboard fix makes the Dashboard case go red).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

🧪 Comprehensive Test Suite

  • Unit suites (Node 18.x & 20.x) — core, web, server, mcp-server: ✅ passed
  • Installer & deploy config: ✅ passed

Full-stack smoke gate runs in the CI workflow.

@mvalancy mvalancy merged commit e383dd8 into develop Jun 16, 2026
16 checks passed
@mvalancy mvalancy deleted the fix/flaky-test-and-dashboard-mobile branch June 16, 2026 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant