Skip to content

fix: measure margin Send after draft shrink motion ends - #4395

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-4255
Oct 27, 2026
Merged

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The margin-card journey measured Send while the short draft's shrink animation was still running. Playwright's subsequent click waits for a stable button, so the assertion compared the next action against an earlier animation frame rather than the pressed position.

Wait for the card's finite animations before recording that baseline. The 0.5px send-position assertion and the complete send-and-answer journey remain intact; no product behavior changes. This preserves #3939's intent that a shrinking draft returns the card to its original top.

Validation: the journey failed before this change and passed after it, including with Chromium slowed sixfold.

Closes #4255 — automated triage

Wait for the card to finish its finite animations before measuring the Send baseline, matching the stable position Playwright clicks. The original send-position assertion and send-and-answer coverage remain intact.

Closes #4255
@leaf-agent
leaf-agent merged commit 66bd16f into main Oct 27, 2026
3 of 4 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4255 branch October 27, 2026 08:28
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.

Sending a margin reply leaves its next action 7.6px above the pressed Send

1 participant