Skip to content

ui-kit: test-health batch e3855-ui-kit-02 #3869

Closed

Description

@schlessera

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, EveryWriteShowsItsEffect and Static, weak-matcher. The stories claim the effect chip is visible in the row, but toBeTruthy on a found element passed with the chip set to visibility: hidden, because the accessible name comes from aria-label. They now assert toBeVisible. Mutation: a hidden chip.
  • decisions/QuestionAndMask.stories.tsx, SingleQuestionUnchanged and its Wide copy, duplicate-case. They repeated AskUserCard OtherOpen step 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 behind aria-disabled.
  • conversation/EmptyState.stories.tsx, DecorativeActions, and decisions/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-health is ok.
  • The batch pull request's proof passes 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

  1. added this to the 0.45.0 milestone on Nov 10, 2026
  2. added
    type: test
    area: ui-kit
    on Nov 10, 2026
  3. added
    priority: p1
    on Nov 10, 2026
  4. schlessera commented on Nov 11, 2026

    @schlessera
    OwnerAuthor

    Delivered by #3870, which passed its proof on its own head and merged into epic/3855-test-health as 22bfa7271 (the push in #3855). GitHub does not apply Closes for a pull request into a non-default branch, so I'm closing this by hand. The change reaches main with the epic's single landing pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: ui-kitpriority: p1type: test

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions