Skip to content

fix: expect a margin card's reply box, not its ground, to move when a refused reply returns its room - #5831

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-5829
Nov 11, 2026
Merged

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

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's carried_by_card allowance still matched only div.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:

Verification: all four test_refused_reply_retains_its_live_foot cases 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

… 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
@leaf-agent
leaf-agent merged commit a52abb1 into main Nov 11, 2026
6 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-5829 branch November 11, 2026 09:01
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.

Refused-reply journey's margin case fails under Playwright 1.65: the card's moved reply field is not recognised

1 participant