Repository navigation
Description
Context
status-indicator.visual.tsx › "hover, focus, click, Enter, Space and tap expose the same summary; activation opens details at the heading" failed once in a hosted browser shard (browser (3)). The PR it ran on (#3824) touches no ui-react file. All the other tests in the file passed.
Seen in CI run 42774965202 on head 459c4eba1.
Acceptance criteria
- Identify the timing assumption that fails (focus, hover delay or details animation) from the run's trace and screenshots, and make the test wait on the observable state rather than on elapsed time.
- Run the test repeatedly on the pinned browser image with no failure.
Verification
The pinned browser runner, per docs/process/testing.md.
Readiness correction (2026-11-15)
Readiness review (2026-11-15): the implementation already exists on main in commit 99ac389. No duplicate code change or PR was created.
Recovered the original run's browser (3) failed-job log and downloaded its browser-proof-3 artifact (artifact 13743589167). The log identifies the exact failing assertion at status-indicator.visual.tsx:65: hover waits for the 300ms delay: expected <div ...> to be null, immediately after await userEvent.hover(control) and await pause(150). The failure screenshot shows the summary tooltip visible beside the trigger, with no details dialog. This confirms the failure occurs in the early-hover negative assertion, before focus or details activation. The old sleep starts after the hover command returns; the component's timer starts on pointer entry, so a delayed round trip can outlast the assertion's intended window.
The downloaded artifact contains the failure screenshot but no Playwright trace archive. Current source already observes pointer arrival and tooltip insertion and polls for summary state, matching the earlier comment's fix and mutation/stress receipts. The remaining explicit requirement to identify timing from the original trace cannot be satisfied from this artifact.
Resume: supply the original trace from run 42774965202, or decide that its assertion log plus failure screenshot are sufficient evidence, then verify/close the existing fix. Marking needs: repro and removing agent-ready until that evidence requirement is resolved. Removing the milestone under the run's flake policy; this remaining historical verification does not block release work. Claim released.
Activity
schlessera commentedon Nov 10, 2026
Test-health push #3855, batch
e3855-ui-kit-05.Not reproduced. I ran
bun scripts/test-health.ts measure packages/ui-kit/tests/visual/status-indicator.visual.tsx --runs 5 --stresson the pinned browser image at0129244ad, which is 10 runs with every CPU busy. All 10 passed. Without the trace from run 42774965202 the cause is not proven, so this stays open.Likely cause, fixed on the batch branch. At that commit the test hovers, sleeps 150 ms, and expects no tooltip yet (
packages/ui-kit/tests/visual/status-indicator.visual.tsx:63-65). The 300 ms timer starts on pointer-enter (packages/ui-kit/src/chrome/StatusIndicator.tsx:152, from the handler at :196), beforeuserEvent.hoverreturns. If the hover round trip takes more than 150 ms on a loaded shard, the timer fires before the sleep ends and the null check fails.The test now records the pointer's arrival in the capture phase, before React's handler starts the timer. It records the tooltip's insertion with a MutationObserver and asserts that at least 300 ms passed between the two. A slow runner can only make that gap longer.
Receipts:
test-health mutate, killed). The old shape could also let a 250 ms delay through.Refs only: the first acceptance criterion asks for the failure to be identified from the run's own trace and screenshots, and that has not been done.
test(ui-kit): status indicator measures its hover delay from the poin…
schlessera commentedon Nov 15, 2026
Claimed for implementation. Claim token:
claim-a0e0ecb6. Branch:test/3829-status-indicator-evidence.Existing timing fix is on main; checking original failure evidence. Collision scan pending.
schlessera commentedon Nov 15, 2026
Readiness review (2026-11-15): the implementation already exists on main in commit 99ac389. No duplicate code change or PR was created.
Recovered the original run's browser (3) failed-job log and downloaded its browser-proof-3 artifact (artifact 13743589167). The log identifies the exact failing assertion at status-indicator.visual.tsx:65:
hover waits for the 300ms delay: expected <div ...> to be null, immediately afterawait userEvent.hover(control)andawait pause(150). The failure screenshot shows the summary tooltip visible beside the trigger, with no details dialog. This confirms the failure occurs in the early-hover negative assertion, before focus or details activation. The old sleep starts after the hover command returns; the component's timer starts on pointer entry, so a delayed round trip can outlast the assertion's intended window.The downloaded artifact contains the failure screenshot but no Playwright trace archive. Current source already observes pointer arrival and tooltip insertion and polls for summary state, matching the earlier comment's fix and mutation/stress receipts. The remaining explicit requirement to identify timing from the original trace cannot be satisfied from this artifact.
Resume: supply the original trace from run 42774965202, or decide that its assertion log plus failure screenshot are sufficient evidence, then verify/close the existing fix. Marking needs: repro and removing agent-ready until that evidence requirement is resolved. Removing the milestone under the run's flake policy; this remaining historical verification does not block release work. Claim released.
schlessera commentedon Nov 16, 2026
Maintainer decision (2026-11-16): the recovered evidence is sufficient. The browser (3) job log from run 42774965202 names the failing assertion (
status-indicator.visual.tsx:65, the early-hover negative check afteruserEvent.hover+pause(150)). The failure screenshot shows the summary tooltip already visible, which confirms the cause: the component's timer starts on pointer entry, before the sleep does. The trace archive the issue asked for is not required. The fix (99ac389c2) is on main, wherepackages/ui-kit/tests/visual/status-indicator.visual.tsxnow polls tooltip and dialog state instead of timing the positive waits. The remaining fixedpause(400)calls are negative checks that must outlast the delay.