Repository navigation
Description
Context
Found during the test-health push (#3855), batch e3855-ui-kit-05.
Blocked by #3896
The line numbers below are on the batch branch (test-health/e3855-ui-kit-05, PR #3898 into epic/3855-test-health, head b9b305a21), which adds the theme pairing and the comment this issue removes. On main 91e54be37 the same anchors are 10 lines earlier: roving group, one tab stop at :215, overflow sheet … at :245 and the inset-corner touch at :283; mount's resize (:66-67) and the afterEach touchCancel (:33) are unchanged. On main both themes still run at every width, so the dependency is masked there, and the comment named in the acceptance criteria does not exist yet. That is why this waits on #3896 (closed by #3898).
packages/ui-kit/tests/visual/session-strip.visual.tsx runs in the three rail-* projects. Its overflow sheet: focus moves, is trapped and returns: ${theme}, ${width} case (packages/ui-kit/tests/visual/session-strip.visual.tsx:255) opens the sheet by keyboard, then by pointer: under a coarse pointer, a native touch at the summary's inset corner (same file:293).
On the batch branch, the theme-blind cases in that file were paired one theme per width. When roving group, one tab stop: dark, 900 (same file:225) no longer ran directly before overflow sheet …: dark, 900, that case failed in rail-coarse and rail-mixed:
FAIL rail-coarse (chromium) tests/visual/session-strip.visual.tsx > overflow sheet: focus moves, is trapped and returns: dark, 900
AssertionError: a pointer opens the sheet: expected null not to be null
The same run with only the roving case restored in front of it passed 108 of 108. Without it, the preceding case is touch and pointer open a pill once, at its corners: dark, 320: a touch case at 320px. So the first touch after a width change and an earlier touch case does not reach the summary, and the overflow case passes only because a keyboard-only case at the same width runs first. The batch keeps the roving case in both themes, with a comment pointing here, so the suite is green; the dependency is still there.
What is not known yet: whether the cause is the viewport resize (commands.formViewport and page.viewport in mount, same file:66-67) not having settled before the touch coordinates are read, or touch state left by rankTouch (packages/ui-kit/tests/visual/rank-pointer.ts:27) across the afterEach touchCancel (same file:33). This needs scoping.
Scope
- Reproduce by running
overflow sheet …: dark, 900directly after the 320px touch case, with no 900px case in between. - Find which of the two candidate causes it is, and make the case independent of the case before it.
Out of scope
- Raising any timeout or deadline, or adding a retry.
- Changing
SessionStripbehaviour, unless the reproduction shows the product drops a real first touch after a resize. That would be a separatetype: fix. - The theme pairing in this file.
Acceptance criteria
overflow sheet: focus moves, is trapped and returnspasses in all three rail projects when no other case at its width runs before it. A test shows this, and it fails on the current tree.- The comment on
roving group, one tab stopthat points at this issue is removed. That case then runs dark at 320 and light at 900, like the other paired cases.
Verification
node scripts/visual.mjs --project=rail-coarse --project=rail-fine --project=rail-mixed --filter=session-strip.visual, run several times on the changed file.
Contract impact
None.
Activity
schlessera commentedon Nov 10, 2026
Triage, 2026-11-10, at
main91e54be37: citations checked. They hold on the batch branch (PR #3898), and onmainthey sit 10 lines earlier. The body now says this. AddedBlocked by #3896, because the acceptance criteria remove a comment and a theme pairing that only exist once #3898 lands. Attached to #2753: the fix makes a browser case independent of the case run before it. Priority p2. Ready once #3896 closes.schlessera commentedon Nov 11, 2026
Unblocked: #3896 is closed, so
scripts/sync-project.tsis removing theblockedlabel.