Repository navigation
test: check the empty draft's badge against the cards' digit column - #7025
Merged
Merged
Conversation
#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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
test_the_draft_binding_badge_and_send_press_share_the_row_endasserted 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-clearfrom 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 checks that Add keeps its seat when words appear are unchanged. The test fails on
mainand passes with this change, and the rest oftest_render_options_addition.pypasses. 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