Skip to content

test: drop the phone-width case from the offscreen thread card arrival test - #5357

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

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

#5039 made the floating panel the only thread surface on a window too narrow for the rail (958px with Leaf's theme): every route into a thread there, t included, opens the panel and no margin card is drawn. test_an_offscreen_thread_card_arrives_with_its_anchor[above-or-below-up] still pressed t at 390px and waited for .lf-margin-preview, so it failed on Linux and macOS in scheduled run 41432142330; the aria snapshot there shows the thread open in the panel dialog, as #5039 intended.

The test now runs both arrival directions (down and up) on a 1440px window, where the card is the thread's surface, so the upward arrival the phone case covered keeps its coverage. Nothing in the product changes. The phone route into the panel is covered by #5039's own tests, such as test_walking_to_an_obligation_on_a_phone_continues_its_discussion_in_the_panel.

Verified locally: the above-or-below-up case fails on main; both new cases pass.

Closes #5146 — automated triage

…l test

#5039 opens a thread in the floating panel on a window too narrow for the
rail, so pressing t at 390px never draws a margin card and the case waited
for one forever. The test keeps both arrival directions on a wide window,
where the card is the thread's surface; the panel route on a phone has its
own tests.

Closes #5146
@leaf-agent
leaf-agent merged commit 918d666 into main Nov 4, 2026
5 of 6 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-5146 branch November 4, 2026 10:44
@leaf-agent

Copy link
Copy Markdown
Collaborator Author

Merged at 25ee455 despite the red test job, under the repository's CI-repair landing rule. The repair's own cases (test_an_offscreen_thread_card_arrives_with_its_anchor[down] and [up]) passed in run 41813633321. The run's only failure, tests/process/test_interact_server.py::test_a_pages_own_row_publications_do_not_rescan_its_neighbors (assert 2 == 1: the neighbor scan ran twice instead of once), is in code this diff doesn't touch. That test passed 5/5 locally on main at 7e35d62, so it fails only intermittently on CI.

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.

Offscreen thread arrival lacks the expected focused margin card

1 participant