Repository navigation
Pause paging test clock after its current time - #1262
Merged
Merged
Conversation
Owner
|
why are we running clocks at all? is that needed? |
Collaborator
Author
|
For the paging test, yes: it asserts that hints are still hidden during native PageDown, before the 80 ms settle window ends. Without a controlled clock, the driver can reach that assertion after the transient state has passed. The resize test only asserts the settled result, so I removed its clock and let the visibility assertion wait for the page. Both focused tests pass locally with that change. |
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 nightly navigation test installed a browser clock at zero, let it advance, then asked Playwright to pause at zero. The paging test now pauses beyond the clock's current time. It uses controlled time to inspect the brief interval before the hint map settles after native PageDown; the resize test only needs the final visible result and now waits for that without a clock.
The run's other failure was a demo recording timeout while waiting for a margin thread. PR #1250 subsequently changed the recording to wait for complete page readiness; the demo test passed locally on current main with the installed Playwright browser.
Verification: the two focused navigation tests pass locally. The prior run also passed
test_demo_recording_drives_the_browser_journeylocally. A delayed clock setup reproduced Playwright'sCannot fast-forward to the pasterror before this change.