Skip to content

ui-react: test-health batch e3855-ui-react-01 #3949

Closed

Description

@schlessera

Context

This is one shard of the test-health push in #3855. Shard e3855-ui-react-01 covers 38 packages/ui-react test files: unit, runtime, layout, offline and pointer files, from activity-report to diagrams-axis. They were audited through all eight lenses in 25 clusters, in run th-20261110190028-150ab8.

Fixed findings, each with the proof the skill requires:

  • Assertions that could pass without checking anything now can fail. Each change has a killed mutation receipt.
    • api-client.test.ts, unawaited-async: two expect(...).rejects calls were not awaited. The 404 check now also requires status: 404 and the server's message.
    • asr-gemini.test.ts, empty-by-construction: every() passed on an empty track list. The test now requires exactly one ended track and one closed socket.
    • attachment-reads.test.ts, derived-expectation: the binary row's expected label was read back from attachmentRowProps itself. It is now the literal "File · 3.1 MB · sent".
    • conversation-consent.offline.tsx, empty-by-construction: the capture tracks are now pinned to ["ended"].
    • desktop-navigation.pointer.tsx, masked-assertion: "no chord reaches Graph" could never fail. The test now presses Meta+6 and Meta+7 and requires that Chat stays active.
  • Order dependence. approval-recovery-runtime.test.ts asserted the backend's module-level decisions map in absolute terms, so the test failed whenever the second-page test ran before it. It now counts only its own decisions; 10 shuffled runs are green.
  • Leaked browser state.
    • activity-report.layout.tsx never restored dataset.theme.
    • desktop-navigation.pointer.tsx and destination-press.pointer.tsx resized the shared outer window and never gave it back.
  • Readable failures. Boolean assertions now compare values in these files:
    • activity-report.test.ts and api-instances.test.ts
    • browser-rejection-runtime.test.ts
    • answer-delivery-runtime.test.ts (4 frame checks)
    • agent-orbit.layout.tsx
    • composer-files.offline.tsx (3 checks)
    • association-signout-runtime.test.ts, whose skip and build messages named the local-work suite.

No test is removed.

Filed or advanced from this shard:

Scope

Test code only, in the member files of each cluster.

Out of scope

Product code, timeouts and deadlines, screenshot references, and files outside the shard.

Acceptance criteria

  • bun scripts/test-health.ts batch verify --base origin/epic/3855-test-health is ok, with no test or assertion removed.
  • Every fixed cannot-fail finding carries a killed mutation receipt.

Verification

batch verify, check:pr --base origin/epic/3855-test-health, and the integration branch's hosted proof.

Contract impact

None.

Activity

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

    @schlessera
    OwnerAuthor

    Delivered by #3950, which merged into epic/3855-test-health as e77de7658 (the push in #3855). It landed in the combined merge without proof of its own; the gate, typecheck and check:pr passed on the combined branch. The epic's two exhaustive runs on dc2439551, 42996974186 and 42997012467, then passed. One cluster, th-20261110190028-150ab8#22 (desktop-navigation and destination-press pointer files), failed both of the first shake-out runs on "acts run the palette's handlers, mid-turn". I dropped it in 00da7e393 and voided it in the ledger, so those files go back into the rotation. 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-reactpriority: p1type: test

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions