Skip to content

test: measure the writing boxes #6803 resized by their new rule - #6851

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-6849
Nov 23, 2026
Merged

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

#6803 made every box written in one height: a field at its frame's edge
takes the frame's padding (--lf-thread-pad) on either side of its line,
and the alt+click comment box wears a one-pixel edge round that. Four
tests still read the old geometry; none of them catches a change in
behavior.

  • The compact comment box's height is now read as --lf-line plus twice
    --lf-thread-pad plus its edge (46px under a mouse), as
    test_a_comment_box_is_the_frame_of_the_card_it_becomes holds it.
  • A diff conversation's resting reply box is held to a card's reply box,
    --lf-line plus twice --lf-thread-pad (44px), rather than to a bare
    line.
  • The side-comment test typed lines while one more would leave the box's
    foot short of the window's foot (< foot). With the new box one more
    line landed exactly on the foot, so the box never needed to shift up
    and the test's premise failed. It now types while one more line still
    fits (<= foot), so the next line always goes past the foot.
  • The sent-drawing test compared the field's border-box top with the sent
    message's text box. The comment box's field now carries 12px of padding
    under a finger, so those boxes differ by 7px while the words stand at
    the same place (209.14px before and after Send). It now compares the
    first line of words: the field's top plus its padding against the sent
    text's first line.

All four failed on main at 39ee727 and pass with this change; the side
comment and drawing tests also pass on #6803's parent, so they hold the
same behavior on either geometry.

Closes #6849 — automated triage

#6803 made every box written in one height: a field at its frame's edge
takes the frame's padding (`--lf-thread-pad`) on either side of its line,
and the alt+click comment box wears a one-pixel edge round that. Four
tests still read the old geometry; none of them catches a change in
behavior.

- The compact comment box's height is now read as `--lf-line` plus twice
  `--lf-thread-pad` plus its edge (46px under a mouse), as
  `test_a_comment_box_is_the_frame_of_the_card_it_becomes` holds it.
- A diff conversation's resting reply box is held to a card's reply box,
  `--lf-line` plus twice `--lf-thread-pad` (44px), rather than to a bare
  line.
- The side-comment test typed lines while one more would leave the box's
  foot short of the window's foot (`< foot`). With the new box one more
  line landed exactly on the foot, so the box never needed to shift up
  and the test's premise failed. It now types while one more line still
  fits (`<= foot`), so the next line always goes past the foot.
- The sent-drawing test compared the field's border-box top with the sent
  message's text box. The comment box's field now carries 12px of padding
  under a finger, so those boxes differ by 7px while the words stand at
  the same place (209.14px before and after Send). It now compares the
  first line of words: the field's top plus its padding against the sent
  text's first line.

All four failed on main at 39ee727 and pass with this change; the side
comment and drawing tests also pass on #6803's parent, so they hold the
same behavior on either geometry.

Closes #6849
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.

Four box-height and transcript tests still expect the 32px writing box #6803 resized

1 participant