Repository navigation
test: keep the reading journey's last thread message inside the window after #6254's wider gaps - #6307
Merged
Conversation
…eading journey #6254 gave each thread message 24px of room after it instead of 16px. The reading-reply-below case reads the notes thread's `read` paragraph at the reading line and needs the thread's last message to start below it inside the 900px window, with the reply box under the window's foot. Eight messages stand between the two, so the wider gaps put the last message's top at 910px and the case failed its precondition. The first two follow-up steps now take one line each, which puts the last message at 868px in Chromium and Firefox while the reply box stays off screen. No behavior changes; the layout is as #6254 meant it. Closes #6299
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.
reading-reply-belowneeds the notes thread's last message to start below the reading place and inside the 900px window, with the reply box below the window. #6254 widened the gap after each thread message from 16px to 24px. Eight messages sit between the read paragraph and the end of the thread, so that change moved the last message's top to 910px, 10px past the foot, and the case failed its own precondition ({'above': False, 'shown': True, 'below': False}). The layout is doing what #6254 meant it to do, and the case doesn't check the gap. Only the setup crossed a threshold.The first two follow-up replies in the notes thread are now one line each. The last message now starts at 868px in both Chromium and Firefox, and
put_reading's check that the reply box is out of the viewport still passes. That leaves 32px of slack. #6272, still open, changes message ends again.reading-reply-below-{chromium,firefox}fail on main and pass with this change. All 20 cases at thereadingplace pass in both engines. The 2 xfails in that selection are the existingdiff-reading-deletionsmarkers. No other place uses the notes thread.Closes #6299 — automated triage