Repository navigation
test: expect a thread card to stand on its top when a line leaves its draft - #7182
Merged
Merged
Conversation
… 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
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.
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 twocardcases 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