Skip to content

test: give the second-margin-reply journey room for #7329's slim card - #7415

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-7408
Nov 27, 2026
Merged

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

#7329 opens every comment card slim (320 px) instead of the 592 px a card under its words used to take. In this test the first message now wraps, so the card stands 21 px taller. At the 1000×608 window the draft's second line then already reaches the window's foot (542 px): the card stops there and the transcript scrolls 4 px, which lifts the editor from 481 to 477. The card's top and width hold throughout, so the box isn't re-standing or widening. This is the test's own later "bounded" phase, arriving one line early.

The repair gives the test a 640 px window. The second line grows below the first again, and the long draft still reaches the foot and shares the card with its transcript, so both behaviors the test protects are still checked. #7329's slim card stays, and no runtime code changes. This follows the precedent of #5928, which resized thread-card tests after a placement change.

Verification: the test fails on main at 608 px (assert 477 == 481 ± 0.5) and passes at 640 px on this branch (Linux, run by node id). A probe at #7329's parent (a5d8c24ec) confirmed the cause: there the card was 592 px wide and the message 64 px tall, and with the slim card it is 85 px. The test failed on macOS in scheduled run 45985529285. Mac fonts can wrap differently, and 640 px leaves about 30 px more room than Linux needs.

Closes #7408 — automated triage

#7329 opens every comment card at 320 px rather than the 592 px a card
under its words used to take. In this test's card the first message now
wraps, so the card stands 21 px taller, and at the 1000x608 window the
draft's second line already reaches the window's foot (542 px): the
card stops there and the transcript scrolls 4 px, which lifts the
editor from 481 to 477. That is the test's later "bounded" phase,
reached one line early, not the box re-standing; the card's top and
width hold. At 640 px the second line again grows below the first, and
the long draft still reaches the foot and shares the card with the
transcript, so both behaviors the test protects are checked. No runtime
code changes, and #7329's slim card stays.

Closes #7408
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_second_margin_reply_grows_below_the_first_line: the reply editor rises 4px as it grows since #7329

1 participant