Skip to content

test: expect a new comment's thread in the panel on a 760px window - #5354

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-5139
Nov 4, 2026
Merged

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

#5039 made every thread open in the floating panel on a window narrower than --lf-rail-room (958px with Leaf's theme), Send from a new comment included. The 760px case of test_a_new_anchored_comment_keeps_the_users_thread_view still expected a margin card, so it failed in the scheduled run on Linux and macOS (#5139). The test lives in tests/browser/, which a PR's CI doesn't run unless the PR edits it, so #5039 didn't run it.

The 760px case now expects what #5039 intended: the sent thread is in the panel and focused, no card opens, and the passage stays where it was. The 1000px and 1440px cases keep the card expectations unchanged. No product behavior changes.

Verification: on current main the 760px case fails as in the report (.lf-margin-preview stays hidden), and with this change all three cases pass locally.

The other consumer reported on #5139, test_sample_host_view_changes_leave_its_scroll_and_keyboard_position, had the same cause and was already fixed by #5200. It passes on current main.

Closes #5139 — automated triage

#5039 opens every thread in the floating panel on a window narrower than
`--lf-rail-room` (958px with Leaf's theme), Send from a new comment
included, but the 760px case of
test_a_new_anchored_comment_keeps_the_users_thread_view still expected a
margin card. That case now expects the sent thread focused in the panel,
no card, and the passage left in place; the 1000px and 1440px cases keep
the card expectations unchanged.

Closes #5139
@leaf-agent
leaf-agent merged commit ff5aecc into main Nov 4, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-5139 branch November 4, 2026 10:34
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.

New anchored comment opens without the expected margin view

1 participant