Skip to content

test: wait for the code block's own sideways scroll in the code-copy journey - #6755

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-6754
Nov 22, 2026
Merged

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

test_code_copy_keeps_source_and_stays_beside_scrolling_and_revised_blocks waited for two sideways scrolls with scroll_settled(page), which watches the document's vertical scroll. The document doesn't move in either gesture, so the wait returned at once while the code block's own scroll was still running. After the touch swipe on #plain, a probe placed right after the wait read scrollLeft still rising from 295 to 472 over about 25 frames. Both waits now watch the block that scrolled (#plain, #colored) on the x axis, as other horizontal settles in the suite already do.

This removes a real ordering gap in the step that failed on the Nov 22 macOS nightly. Whether it caused that failure is unproven. The failing read had the suffix 67 px past the block's edge, and the fling never got near that far: on Linux it stopped around 470 px of a 2933 px range. Locally, setting scrollLeft after the old wait also cancelled the fling, so the old failure doesn't reproduce here. arrivals.js does note that in Chromium an instant write doesn't stop a scroll the browser drives (stopWhereItStands), so the race can play out differently on macOS. The test had already passed 18/18 alone on the macOS runner, so a dispatch can't tell the base from this branch. Under the repository's rule for failures no dispatch reproduces, the failing scheduled run is the evidence from before the fix and the next nightly after it merges is the evidence from after.

Verified: the test passes locally, and leaf-dev suite flake --copies 6 --load 2 --cpu-throttle 8 passed 6/6 on this branch.

The issue's other failure, the 1 px move in test_an_idle_open_panel_thread_shows_appended_replies[tall], is untouched here. It passed 20/20 under load on Linux (throttle 8 and 20) and stays open on #6754.

Refs #6754 — automated triage

…code-copy journey

After a horizontal swipe on #plain and an ArrowRight on #colored, the test
waited with scroll_settled(page), which watches the document's vertical
scroll. The document never moves in either gesture, so the wait returned
while the block's native scroll was still moving: a probe showed #plain's
scrollLeft still climbing from 295 to 472 over about 25 frames after it
returned. Both waits now watch the block that scrolled, on the x axis.

Refs #6754
@leaf-agent
leaf-agent merged commit 89b4d28 into main Nov 22, 2026
7 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-6754 branch November 22, 2026 15:57
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.

1 participant