Skip to content

test: report the panel thread's whole reading when an append moves its first message - #6971

Merged
leaf-agent merged 1 commit into
mainfrom
test/issue-6754-panel-offset-reading
Nov 24, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
test/issue-6754-panel-offset-reading

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

test_an_idle_open_panel_thread_shows_appended_replies now takes one reading of the first message's place (its offset within .lf-fp-view, the view's scrollTop, and the view's and message's tops in the window) before and after the append, and a failure prints both readings. Before, the offset assertion failed first, so the macOS failures in #6754 (18.09 vs 14 ± 0.5 for [short], 15.02 for [tall]) couldn't say whether the view scrolled, moved on screen, or the message moved inside it. The test asserts the same thing as before: the offset holds within 0.5 px and scrollTop is unchanged.

The failure hasn't reproduced off the nightly. On the test-macos runner with --load 4, 18 copies of each case and of test_the_thread_walk_stands_on_each_thread_it_opens all passed (run 45342336235), and the Nov 23 scheduled run passed all three. Both cases pass locally with this change.

Refs #6754 — automated triage

…s first message

The idle panel-thread append test asserted the first message's offset
within the view and only then the view's scrollTop, so a failing offset
told nothing of whether the view scrolled, moved on screen, or the
message moved inside it. It now takes one reading of offset, scrollTop
and the view's and message's window tops, and a failure prints both
readings. The behavior asserted is unchanged.

Refs #6754
@leaf-agent
leaf-agent merged commit 43047cc into main Nov 24, 2026
7 checks passed
@leaf-agent
leaf-agent deleted the test/issue-6754-panel-offset-reading branch November 24, 2026 07:11
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.

1 participant