Repository navigation
fix: await keyboard scrolling before measuring scrollbar clearance - #4307
Merged
Merged
Conversation
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
marked this pull request as draft
October 27, 2026 00:19
leaf-agent
marked this pull request as ready for review
October 27, 2026 03:04
This was referenced Oct 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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