Repository navigation
test: run the long thread's last reply past the window in test_page_holds_still - #6768
Merged
Merged
Conversation
…olds_still The `reading-*` cases need the `notes` thread's reply box below the window while its last message starts inside it. The gap between the two was the last reply's height alone, two lines: on Linux the box stood 6px below the window, and with macOS line heights it came fully into view, failing put_reading's setup in all 12 cases since #6748 dropped one exchange. The last reply now runs eight times as long, so the box stands 300px below the window on Linux. Where the last message starts is unchanged, since only text below it grew. The behavior under test is unchanged. Closes #6766
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
reading-*cases oftest_the_page_holds_still_under_the_userneed thenotesthread's reply box below the window while the thread's last message starts inside it. The only thing between those two edges was the last reply's height, about two lines. On Linux (Chromium) the reply box stood just 6px below the 900px window, and macOS's taller line metrics brought it fully into view. That failedput_reading's setup in all 12 cases (#6766) once #6748 dropped an exchange so the last message would start inside the window under #6682's seated card.The last reply now runs eight times as long. Only text below the last message's top grew, so the message still starts where it did, 775px down the window. The reply box now stands 300px below the window instead of 6px, far more than the two platforms' line heights differ by. What the cases test is unchanged, and so is what #6748 intended.
Verification
put_readingin Chromium (reading-reply-above) before and after, the last message's top stays at 774.7px in both, and the reply box's top moves from 905.7px to 1199.7px.test-macosflake dispatches ran the 12 cases twice each. On main's75c3a82cb, all 24 copies failed atput_reading'snot_to_be_in_viewportwithviewport ratio 1, the issue's error (run). On this branch, all 24 passed (run).Closes #6766 — automated triage