Skip to content

test: run the long thread's last reply past the window in test_page_holds_still - #6768

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-6766
Nov 22, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-6766

Conversation

@leaf-agent

@leaf-agent leaf-agent commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

The reading-* cases of test_the_page_holds_still_under_the_user need the notes thread'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 failed put_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

  • Linux: the 12 cases pass. Probing put_reading in 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.
  • macOS: test-macos flake dispatches ran the 12 cases twice each. On main's 75c3a82cb, all 24 copies failed at put_reading's not_to_be_in_viewport with viewport ratio 1, the issue's error (run). On this branch, all 24 passed (run).

Closes #6766 — automated triage

…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
@leaf-agent
leaf-agent merged commit d96b608 into main Nov 22, 2026
11 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-6766 branch November 22, 2026 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test_the_page_holds_still_under_the_user[reading-*]: the reply box stays in view on macOS since #6748 shortened the long thread

1 participant