Skip to content

fix: await keyboard scrolling before measuring scrollbar clearance - #4307

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-4232
Oct 27, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-4232

Conversation

@leaf-agent

@leaf-agent leaf-agent commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

The scrollbar-clearance test read the last button's geometry immediately after keyboard focus arrived. The reported macOS run reached that assertion with the button focused and 15px clear below it, but the strip had only scrolled 127px and the button was still partly outside it.

Wait for the keyboard destination to enter the strip before measuring clearance. The existing focus, horizontal scroll, clearance, probe findings and unchanged content-width assertions remain in place; a destination that never becomes visible still fails. This preserves #2217's keyboard reachability coverage without changing product layout.

Validation: the focused test passes locally on Linux and in both platform jobs of dispatched CI run 40425144786 at this exact head. The normal PR checks passed. The dispatched full suite finished with failures in other tests; this diff only adds a wait inside the passing test and changes no shared fixture or product code. Landing follows the repository's CI-cause repair policy for terminal failures outside the claimed test.

Closes #4232 — automated triage

Keep the generic scrollbar probe and keyboard reachability assertions, but wait for the last button to enter the strip before reading its clearance. Focus arriving does not establish that native focus scrolling has completed.

Closes #4232
@leaf-agent
leaf-agent marked this pull request as draft October 27, 2026 00:19
@leaf-agent
leaf-agent marked this pull request as ready for review October 27, 2026 03:04
@leaf-agent
leaf-agent merged commit 6b63023 into main Oct 27, 2026
6 of 8 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4232 branch October 27, 2026 03:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Scrollbar clearance test finds hidden generic content on macOS

1 participant