Repository navigation
test: pass scroll_settled a selector and compare a fulfilled JSON body as JSON, for Playwright 1.65 - #5824
Merged
Conversation
…y as JSON, for Playwright 1.65 Playwright 1.65 (#5803) changed two things these tests relied on: - Its Python serializer now refuses a Locator inside an `arg`. Two callers handed `scroll_settled` a Locator where it takes a selector string, so `test_executable_revision_keeps_a_reader_who_scrolled_away_from_their_reply` and the journey `test_refused_reply_retains_its_live_foot[nested-end]` now raise. Each passes its scroller's selector instead, so the wait reads that scroller. - `route.fulfill(json=...)` now writes compact JSON, so `test_sample_release_failure_records_the_retired_allocation[json]` compares the recorded body to the fulfilled value as parsed JSON rather than to `json.dumps`'s spacing. The behavior it protects, that a failed release records the server's body, is unchanged. Refs #3985
This was referenced Nov 11, 2026
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.
Playwright 1.65 (#5803) broke three tests on main in two ways, both on the test side. Each test fails on current main and passes with this change.
arg(Attempting to serialize unexpected value at position "[0]": <Locator …>).scroll_settledtakes a selector string, and two callers passed it a Locator:test_executable_revision_keeps_a_reader_who_scrolled_away_from_their_replyand the journeytest_refused_reply_retains_its_live_foot[nested-end]. Both now pass their scroller's selector, so the wait reads the scroller they meant to wait on.route.fulfill(json=...). The recorded body is now{"error":"Release unavailable"}, without the spacejson.dumpsadds.test_sample_release_failure_records_the_retired_allocation[json]now compares that body to the fulfilled value as parsed JSON. The behavior it protects, that a failed release records the server's body, is unchanged. The teardown error in the same test (an unconsumed 503) followed from the failed assertion, which stopped the test before it consumed the 503.The browser test failed in every push run on main from 42905655276 (
a369d1f4c) on. That is the first push run after #5803, and the journey runs only nightly.The same journey's
[margin]case also fails under Playwright 1.65, on main and on this head alike. This change doesn't touch that case, and it has a different cause: the shift-watch allowance no longer recognises the margin card's moved reply field. #5829 tracks it.Refs #3985 — automated triage