Skip to content

test: check the empty draft's badge against the cards' digit column - #7025

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-7021
Nov 24, 2026
Merged

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

test_the_draft_binding_badge_and_send_press_share_the_row_end asserted two layout facts that #6812 changed on purpose. #6812 moved the empty draft's binding badge into "the column every card's digit shares" and sized Add's face from its row's line (--lf-icon-action-face: line + 2px), standing it --lf-clear from the row's end. As a result, Add's centre now sits 1.09 px from the badge's centre in the card group. Add is also wider there (29.19 px, on a 27.19 px line) than in the row group (24 px, on a 21 px line). The test still assumed the badge was centred on Add and that Add was the same width in both groups, so it failed at line 39. Once that assertion was relaxed, it also failed at line 95 (end room 32.19 vs 27 expected).

The test now asserts the intended layout:

  • The empty draft's badge has the same left and right edges as the cards' digit badges (932–951 px for all three in the probe). The vertical check stays as it was.
  • The card group's field end room exceeds the row group's by the badge, its spacing and the difference in Add's width.

The checks that Add keeps its seat when words appear are unchanged. The test fails on main and passes with this change, and the rest of test_render_options_addition.py passes. No CSS changes, so nothing drawn moves. The badge and Add are never on screen in the same seat at once: Add shows only once the field has words, and by then the badge has moved inward.

Closes #7021 — automated triage

#6812 moved the empty draft's binding badge into the column every card's
digit shares, and sized Add's face from its row's line, standing it
--lf-clear from the row's end. Add's centre and the badge's centre no
longer coincide (1.09 px apart in the card group), and Add is wider in
the card group's taller line than in the row group's. The test still
asserted the old coincidence and a group-independent Add width.

It now checks that the badge's edges match the cards' digit badges, and
that the card group's field end room exceeds the row group's by the
badge, its spacing and the difference in Add's width. No drawn behavior
changes.

Closes #7021
@leaf-agent
leaf-agent merged commit c3865bb into main Nov 24, 2026
7 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-7021 branch November 24, 2026 17:36
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_the_draft_binding_badge_and_send_press_share_the_row_end: badge 1.1 px off Send since #6812

1 participant