Skip to content

test: start the smooth-scroll case's glide in the same page task that watches it - #5733

Merged
leaf-agent merged 2 commits into
mainfrom
fix/issue-5711
Nov 9, 2026
Merged

leaf-agent merged 2 commits into
mainfrom
fix/issue-5711

Conversation

@leaf-agent

@leaf-agent leaf-agent commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

The smooth place in tests/journeys/test_page_holds_still.py started its glide with one page.evaluate and began watching it with the next. Its two Firefox cases need the page's read of the change to go while the scroll is still under way. In the nightly macOS job of 42365682113 and 42473165114, both ended at assert 'missed' == 'under way': the scroll had already gone its full 300px when the watch first read it, so the cases never reached the behavior they mark xfail. The smooth place was added in #5398, and these are its first macOS runs.

A place's during can now be a page statement. The page runs it in the same task that starts watching the scroll, so no driver round trip falls between the start of the glide and its first reading. When the precondition fails, the message now lists where the scroll stood at each scroll event. Several steps mean the watch started late. A single step at 300px means the engine finished the glide at once, and that would need a different case design. The cases keep their xfail reasons and assertions.

Verification: on Linux, pytest tests/journeys/test_page_holds_still.py -k "smooth or wheel-reply" --run-nightly gives 4 passed and 2 xfailed. Both Firefox smooth cases reach their expected xfail, as they did before. Linux can't reproduce the macOS miss, so the next scheduled test-macos run after merge settles it.

The same file's on-me-turned-back-ask place still picked On Claude's tab by excluding me, so after #5633 renamed the list On Me its filter matched both tabs and the click failed in strict mode, on main and on this PR (whose edit to the file runs its journeys). The filter now excludes Me; -k on-me-turned-back --run-nightly gives 2 passed on Linux.

Refs #5711 — automated triage. That issue's drawing-preview failure (test_drawing_preview_contains_page_content_and_freezes_it[light-False]) is a separate cause and stays open there.

The `smooth` place of the page-holds-still matrix started its glide in one
`page.evaluate` and began watching it in the next. Its Firefox cases
(`smooth-reply-above-firefox`, `smooth-revision-above-firefox`) require the
page's read of the change to go while the scroll is still under way, and on
the nightly macOS runner both reported `missed` in runs 42365682113 and
42473165114: the scroll had already come all its way when the watch first
read it, so the cases never reached the movement they mark xfail.

A place's `during` may now be a page statement, which the page runs in the
same task that starts watching the scroll, so no driver round trip falls
between the glide's start and its first reading. The precondition's failure
now also prints where the scroll stood at each of its scroll events, which
tells a late watch (several steps) from a glide the engine finished at once
(one step at 300px). No behavior a user relies on changes: the cases keep
their xfail reasons and assertions.

Refs #5711
#5633 renamed the user's list On Me, and the on-me-turned-back place still
excluded it by 'me', so the filter matched both tabs and the click failed
in strict mode.
@leaf-agent
leaf-agent merged commit e09a255 into main Nov 9, 2026
6 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-5711 branch November 9, 2026 09:16
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