Repository navigation
test: walk the side-list queue journey with its tabs in sight - #5498
Merged
Merged
Conversation
The side-list journey's scroll-preservation step focused Ticket b, scrolled the page 900px so the list was off screen, and pressed ArrowDown expecting Ticket c. Since #5192, and as #5468 now states, a key pressed at a control scrolled out of sight lets go of it first, so the arrow selected nothing. The step now scrolls the page to just short of the panel's top with both tabs still in view, and still asserts the switch leaves scrollTop unchanged. The behavior protected (a tab switch in a scrolling root set keeps the page's location) is unchanged; the old off-screen walk is no longer a gesture Leaf honors. Closes #5461
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.
test_a_side_list_is_a_queue_beside_the_item_it_opensfailed in every scheduled run since 2026-11-03 because its last step pressed ArrowDown on a tab the test had scrolled out of sight. Since #5192, and as #5468 now states (browser/runtime/keyboard/controller.jsheader), a key at a control the user can't see lets go of it first and acts from what they see, so focus landed onbodyand Ticket c was never selected. The step's purpose is to show that a tab switch in a scrolling root set keeps the page's scroll position; it now scrolls the page to 12px short of the panel's top with both tabs in view, then walks to Ticket c and assertsscrollTopis unchanged. A switch that jumped to the page's top or to the panel would still fail it.#5468 updated the tests it moved, but this journey runs only nightly, so its pull request CI never reached it. No runtime behavior changes here: the walk from an off-screen tab is a gesture #5468 deliberately stopped honoring, and the repair keeps that decision.
Verification: on
mainthe test fails locally at line 276 (aria-selected="false"on Ticket c). A probe showed focus on Ticket b before the press andletGo(focus.js, called from the controller's capture listener) moving it tobody. With this change the test passes in three local--run-nightlyruns.Closes #5461 — automated triage