Skip to content

test: expect a thread card to stand on its top when a line leaves its draft - #7182

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-7175
Nov 25, 2026
Merged

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

Conversation

@leaf-agent

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

Copy link
Copy Markdown
Collaborator

Since #7082, a thread card keeps its reply box's top still and grows down as its draft changes; before, it kept its foot. So when Backspace takes a line from among the draft's words, the lines under the removed line now rise 21px, one line, in the frame the key lands, where layout puts them. test_a_line_removed_among_the_words_moves_only_what_layout_moved[card] still expected the foot-standing card's behaviour, every word drawn where it stood in that first frame, so it failed on Linux and macOS in both Chromium and Firefox.

The card now gets the comment box's expectation, since #7082 made both stand on their top. That expectation used to be waived (composer == "comment" or not jumped). Now it is asserted: on a box standing on its top, the removal's first frame draws each word where it comes to rest, so the words after the line arrive in one step and never travel there. The panel still stands on its foot and still has to draw each word where it stood. The test's jerk check and its "the removed line moved some words" check are unchanged.

Verification: on current main (32dc564a8) the two card cases fail with the issue's diff (words 11 … (618.5, 597.5), words 12 … (639.5, 618.5)). With this change, all six cases of the test (card, comment and panel, each in Chromium and Firefox) pass in three runs. That includes the comment box under the stronger assertion.

Closes #7175 — automated triage

… draft

#7082 made a thread card keep its reply box's top still and grow down as
the draft changes, where it kept its foot. When Backspace takes a line from
among the draft's words, the lines under it now rise in the frame the key
lands, as layout puts them, which the test's card expectation (every word
drawn where it stood) predates.

The card now takes the comment box's expectation, and that expectation is
stated rather than waived: on a box standing on its top, the removal's
first frame draws each word where it comes to rest. The panel still stands
on its foot and draws each word where it stood.

Closes #7175
@leaf-agent
leaf-agent merged commit 93f9511 into main Nov 25, 2026
7 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-7175 branch November 25, 2026 18:23
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_a_line_removed_among_the_words_moves_only_what_layout_moved[card]: lines below move up since #7082 anchors a card's top

1 participant