Repository navigation
test: start the smooth-scroll case's glide in the same page task that watches it - #5733
Merged
Merged
Conversation
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.
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
smoothplace intests/journeys/test_page_holds_still.pystarted its glide with onepage.evaluateand 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 atassert '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
duringcan 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-nightlygives 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 scheduledtest-macosrun after merge settles it.The same file's
on-me-turned-back-askplace still picked On Claude's tab by excludingme, 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 excludesMe;-k on-me-turned-back --run-nightlygives 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.