Repository navigation
Description
Context
This is one shard of the test-health push in #3855. Shard e3855-ui-kit-02 covers 36 Storybook story files under packages/ui-kit/stories/conversation/, stories/decisions/ and stories/desktop/. They were audited through all eight lenses in 25 clusters, in run th-20261110163730-142c23.
Fixed findings, each with the proof the skill requires (all mutations killed):
desktop/CommandPalette.stories.tsx,EveryWriteShowsItsEffectandStatic, weak-matcher. The stories claim the effect chip is visible in the row, buttoBeTruthyon a found element passed with the chip set tovisibility: hidden, because the accessible name comes fromaria-label. They now asserttoBeVisible. Mutation: a hidden chip.decisions/QuestionAndMask.stories.tsx,SingleQuestionUnchangedand its Wide copy, duplicate-case. They repeatedAskUserCardOtherOpenstep for step, and were removed. Obligation map in the worksheet. Mutation on the retained owner: the submitted text altered.conversation/CodeFenceTheme.stories.tsx,Phone, conditional-assertion. The 44px loop never pinned how many copy buttons it measured. It now requires one per code block. Mutation: the copy action removed.decisions/AskUserFormCard.stories.tsx, the per-kind stories, nothing-to-observe. They checked only card geometry, so they passed with every conditional child hidden. Geometry now takes the node ids each story must show. Mutation: children never revealed.decisions/AskUserRankCard.stories.tsx, geometry, conditional-assertion. The handle-target loop now requires one handle per row. Mutation: the handle marker renamed.conversation/TurnErrorCard.stories.tsx, the shared play, conditional-assertion. It now requires one operable control per action. Mutation: action handlers dropped.decisions/DispositionBar.stories.tsx,Applying, asserts-the-double. Later's callback was never checked while busy. Mutation: Later live behindaria-disabled.conversation/EmptyState.stories.tsx,DecorativeActions, anddecisions/NotificationCard.stories.tsx,Static, earlier-layer-answers. "No button role" also held when the unwired actions were not drawn at all. Both now require the labels to be visible. Mutation: unwired actions hidden.decisions/NotificationCard.stories.tsx,Acted, asserts-the-double. Only the first action was clicked. Mutation: every button wired to the first callback.conversation/AttachmentRow.stories.tsx,WaveformIsDeterministic, self-comparison. The second assertion compared two arrays the test computed itself. It is removed, and the height assertion owns the claim. Mutation: seconds ignored.conversation/ComparisonTable.stories.tsx,MissingValues, no-assertion. The documented em dash for an empty cell was never asserted. Mutation: an empty string rendered blank.conversation/ApifySpend.stories.tsx, opaque-failure cleanup.
Baseline failures in several of these files were the fake-microphone staging race in #2615, not the stories. The evidence is on that issue. One JournalTheme flake is deferred, because the browser runner keeps no output.
Scope
Test code under packages/ui-kit/stories/ only, as listed above.
Out of scope
Product code, the Vitest configuration, the test-health tooling, and the #2615 fix.
Acceptance criteria
bun scripts/test-health.ts batch verify --base origin/epic/3855-test-healthisok.- The batch pull request's
proofpasses on its head.
Verification
Mutation receipts and measurements are in the run directory for th-20261110163730-142c23. The batch gate passed: 12 commits, 12 files, assertions 307 → 310.
Contract impact
None.
Activity
schlessera commentedon Nov 11, 2026
Delivered by #3870, which passed its
proofon its own head and merged intoepic/3855-test-healthas22bfa7271(the push in #3855). GitHub does not applyClosesfor a pull request into a non-default branch, so I'm closing this by hand. The change reachesmainwith the epic's single landing pull request.