Repository navigation
test(agent): pin the admin dashboard page contract - AdminDashboardPage - #2026
Conversation
Summary by t27-beesThis PR adds a contract test for Worth a look
Read: 1 files, +132 -0, the whole diff. Head |
β Tests passed β 3811/3881
|
Closes #1594 The alert stand-in's root honours the open flag (the first push passed content through unconditionally and broke the sibling Skills and ScheduledTasks closed-alert pins in the CI readdir order).
46b0e6c to
db8044d
Compare
|
Gate check before merge (the fixed head): Tests: 19/19 green on this exact SHA - incl. runner / Typecheck - GREEN, 0 errors, 0 mentions of this PR's file. runner / Biome - red from base, 0 mentions of this PR's file, 0 new findings. Dmitrii Fedorov (@dmitrii-f-t27) |
Closes #1594
First suite for
entrypoints/app/admin-dashboard/AdminDashboardPage.tsx(199 lines, unmodified). The history hook answers its initial empty map (it populates through effects a static render never runs), so the page's static answer is the EMPTY dashboard: three tests pin its header and approvals slots (stubbed with named markers - their own suites own their contracts), the Audit Trail section with its empty-state card (the shield icon, the note, and the run-count line pinned as ABSENT by its own shape - the delete dialog's fixed sentence also carries the words 'recorded run', measured), and the delete AlertDialog in its controlled-closed shape (title, description with the empty task name, Cancel and Delete). The storage seam is the repository's in-memory item shim. Not pinned: the populated audit trail (it rides the effect-populated hook), the delete flow and the toasts.Verified: suite alone 3/3; the admin-dashboard directory one process green; broken copy (the empty-state title reworded, the section title reworded - valid syntax) 2 catcher tests fail, restored byte-identical; biome clean after one auto-format; tsgo with 0 mentions of this file.
Spec: the issue is the executable contract for a test-only change; the suite is the pin.
Dmitrii Fedorov (@dmitrii-f-t27)