|
|
5c23498458
|
test(canvas): add WorkspaceNode component coverage (51 cases, closes #639)
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 15s
sop-tier-check / tier-check (pull_request) Successful in 16s
audit-force-merge / audit (pull_request) Successful in 7s
51 test cases across 8 describe blocks:
- render: name, role, tier badges, runtime label, skills, active task, offline banner
- status states: online, offline, provisioning, paused, degraded, failed, not_configured
- interactions: click select, shift-click multi, double-click chat, context menu, drag-over, keyboard, needsRestart
- layout: sub badge, needsRestart banner
- selection: single, multi, hover class
- accessibility: role, tabIndex, aria-pressed, aria-label, handle labels
Fixes Zustand useSyncExternalStore mock by using inline mock pattern
(vi.fn with captured closure _storeSnap) instead of module-level const.
Adds getState() to mock for restartWorkspace which bypasses selector.
Fixes Position.Top/Bottom mock values, multi role=button ambiguity
via cardButton() helper, and online status empty-label assertion.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-05-12 02:27:19 +00:00 |
|