Repository navigation
test: give the second-margin-reply journey room for #7329's slim card - #7415
Merged
Merged
Conversation
#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
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.
#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
mainat 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