Skip to content

test: walk the side-list queue journey with its tabs in sight - #5498

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-5461
Nov 5, 2026
Merged

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

test_a_side_list_is_a_queue_beside_the_item_it_opens failed 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.js header), a key at a control the user can't see lets go of it first and acts from what they see, so focus landed on body and 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 asserts scrollTop is 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 main the test fails locally at line 276 (aria-selected="false" on Ticket c). A probe showed focus on Ticket b before the press and letGo (focus.js, called from the controller's capture listener) moving it to body. With this change the test passes in three local --run-nightly runs.

Closes #5461 — automated triage

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
@leaf-agent
leaf-agent merged commit c5e2281 into main Nov 5, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-5461 branch November 5, 2026 14:05
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.

test_a_side_list_is_a_queue_beside_the_item_it_opens: the side list never selects Ticket c

1 participant