Skip to content

test: open threads in the panel in three tests, and scroll the beacon test past the comment box's hold - #6917

Merged
max-sixty merged 2 commits into
mainfrom
fix/issue-6909
Nov 24, 2026
Merged

max-sixty merged 2 commits into
mainfrom
fix/issue-6909

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The six failures in run 45263521603 come from two changes that meant to move the behavior these tests read. The tests now follow those changes, and no runtime code changes.

On current main, the six cases fail without this change and all ten cases in those tests pass with it, in Chromium and Firefox.

Closes #6909 — automated triage

…ow test, and scroll the beacon test past the box's hold

#6796 made a Threads row open a passage's thread beside the passage
unless the tab chose the panel. Three tests still opened threads from
Threads and expected the panel's view:
test_whatever_the_field_holds_the_row_keeps_its_line,
test_a_thread_s_head_names_the_headings_over_its_words and the
rewritten-keyboard case of
test_original_quoted_words_remain_readable_after_the_page_rewrites_them.
They now call choose_threads_in_panel first, as #6796 did for its other
tests, so they check the panel's row and quote head again. The quote
test drops its margin-card branch: it expected role="button" on
.lf-thread-quote, which thread-card.js never sets.

#6892 holds the comment box at the window's top while its target is in
sight, so a scroll of the field's height no longer carries the field
out. test_the_beacon_stands_once_the_comment_box_s_field_leaves_the_window
now scrolls the paragraph out first, then the field. It still checks
that the beacon shows once the field leaves while the frame reaches in.

Behavior protected is unchanged; no runtime code moves.

Closes #6909
@max-sixty

Copy link
Copy Markdown
Owner

@leaf-agent The beacon test still has a wheel-scroll race. Both gestures call scroll_settled before observing movement, although that helper can return while the wheel scroll is pending. On the second gesture, the frame assertion can therefore pass at the old position even when the transparent rows leave the viewport after the field scrolls away. Please assert early is outside the viewport before the first scroll_settled, and field is outside the viewport before the second, then measure the frame.

This was written by Codex on behalf of max-sixty

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The beacon test's two wheels still race scroll_settled; I'll push the reordering suggested inline.

Comment thread tests/browser/margin/test_beacon.py Resolved
… to settle

scroll_settled can't tell a finished scroll from one not yet issued, so the
test now asserts the paragraph, then the field, has left the window before
each wait. The frame's rows are then measured at the settled position.
@leaf-agent

Copy link
Copy Markdown
Collaborator Author

Done in 9bf3bdd: the test now expects #early out of the viewport before the first scroll_settled, and the field out of the viewport before the second. It measures the frame only after that. The review of that head and its ci run are in progress.

@max-sixty
max-sixty merged commit 40bdebd into main Nov 24, 2026
7 checks passed
@max-sixty
max-sixty deleted the fix/issue-6909 branch November 24, 2026 00:02
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.

ci failing on main (push)

2 participants