molecule-core/canvas/src
qa-agent 4db8d30ece test(canvas): cover /orgs 5s polling on in-flight orgs
The test docstring promised polling coverage but I'd only wired the
describe-block header, not the actual tests. Closing that gap — vitest
fake timers drive three cases:

- `provisioning` org → 2nd fetch fires after 5.1s advance
- all `running` → no 2nd fetch even after 10s advance
- `awaiting_payment` org, unmount before timer fires → no post-unmount
  fetch (cleanup correctly clears the pollTimer)

The unmount case is the meaningful one: without it a fast nav-away
leaves the 5s interval chasing the CP forever. page.tsx L97-99 does
clear the timer; the test pins the contract.

Local baseline on origin/staging tip ede6597 + this branch:
  canvas vitest: 50 files / 781 tests, all green (+3 vs prior commit)
  canvas build:  clean

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-19 19:18:30 +00:00
..
__tests__ fix(canvas): replace unsafe-inline/unsafe-eval with nonce-based CSP (#450) 2026-04-16 20:35:27 +00:00
app test(canvas): cover /orgs 5s polling on in-flight orgs 2026-04-19 19:18:30 +00:00
components fix(canvas): degraded badge WCAG AA contrast — amber-400 → amber-300 (closes #885) 2026-04-18 12:05:38 -07:00
hooks initial commit — Molecule AI platform 2026-04-13 11:55:37 -07:00
lib test(canvas): pin AbortSignal timeout regression + cover /orgs landing page 2026-04-19 19:14:54 +00:00
store fix(gate-6): merge main into fix/a11y-audit-902-905 — resolve 7 conflicts 2026-04-18 01:34:00 +00:00
stores initial commit — Molecule AI platform 2026-04-13 11:55:37 -07:00
styles fix(canvas): C1/C2/C3/C5 dark-theme CSS and ReactFlow colorMode 2026-04-16 10:45:16 +00:00
types feat(canvas): audit trail visualization panel (issue #753) 2026-04-17 16:03:28 +00:00
middleware.ts fix(canvas): replace unsafe-inline/unsafe-eval with nonce-based CSP (#450) 2026-04-16 20:35:27 +00:00