Repository navigation
fix: expect a margin card's reply box, not its ground, to move when a refused reply returns its room - #5831
Merged
Conversation
… refused reply returns its room #5770 made a margin card hold its top through a send, so when a refused reply's turn is removed the head row stays put and the reply box rises into the room (101px here), instead of the whole card's ground moving. The refused-reply journey's allowance still matched only the ground, which no longer shifts, so its margin case failed. Bisecting under Playwright 1.64 lands on #5770; the Playwright 1.65 failure at the earlier e6756ad was the separate `anchors-visible` deprecation warning that #5803 fixed. The allowance now names the reply box (`div.lf-thread-reply`) in place of the ground, and the margin case asserts the close button in the head row holds its top. That assertion fails by 80px on the runtime before #5770 and passes on main. Closes #5829
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.
The refused-reply journey's
[margin]case expected the wrong thing to move. #5770 deliberately made a margin card hold its top through a send. So when a refused reply's turn is removed, the head row stays put and the reply box rises into the freed room, 101px here. Before #5770 the card held its foot, and the whole card's ground moved down 80px. The test'scarried_by_cardallowance still matched onlydiv.lf-box-ground.lf-margin-preview-ground. The ground no longer shifts, so Chrome doesn't list it beside the move, and the allowance refused the reply field's move.This replaces the ground in the allowance with the reply box (
div.lf-thread-reply), so the accepted set doesn't grow. A new assertion, for the margin case only, checks that the card's close button in the head row keeps its top. That is the behavior #5770 meant to protect, and the reply-box prefix alone wouldn't catch it regressing.The failure isn't Playwright 1.65's doing:
mainthe margin case fails the same way under Playwright 1.64 (Chromium 156) as under 1.65.git bisect rununder 1.64, frome6756ad43(pass) toce2d27f9b(fail), lands on 77ef660 (Grow a margin card down past its reply box when you send #5770).e6756ad43under 1.65, the test failed only on Chromium 158'sposition-visibility: anchors-visibledeprecation warning, which Move to Playwright 1.65, and spell position-visibility's anchor-visible as each engine reads it #5803 fixed.Verification: all four
test_refused_reply_retains_its_live_footcases pass locally on this branch under Playwright 1.65. The margin case failed before this change. On the runtime just before #5770, the new head assertion fails by 80px. Ruff check and format pass.Closes #5829 — automated triage