Repository navigation
test: correct margin reply motion and geometry expectations - #4689
Merged
Merged
Conversation
Measure the completed wrap after the finite card animation, retaining the per-input stability checks and the existing movement threshold. The reported Send race is reproduced by extending the existing resize animation to 30 seconds. The corrected wrapping checks pass under that condition; the complete journey still fails at its inherited tall-draft boundary assertion (892 versus 834 pixels), which remains tracked in #4472. Refs #4472
Match the column-aware boundary introduced by #4555. Native insertion can scroll the source, so shrink checks retain attachment distance rather than an obsolete viewport coordinate. Sending retains its control position subject to the visible window head, preserving the full wrap, tall draft, shrink, send and answer journey without changing product behavior.
leaf-agent
commented
Oct 29, 2026
leaf-agent
left a comment
Collaborator
Author
There was a problem hiding this comment.
The journey still reads the tall draft while its turn is animating: the focused run measured the first turn 26.21px below the card top against the expected 13px, at the assertion following tall = page.evaluate(CARD_AND_REPLY). Waiting for the card’s finite animations before that reading preserves the existing assertion and makes the complete journey pass. I am applying that test-only correction on this bot-authored branch.
Preserve the turn-offset assertion after tall native insertion by measuring after finite card motion ends. The focused journey failed at 26.21px versus 13px without this wait and passes at normal speed and sixfold CPU throttle with it.
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 margin reply journey measured Send while its box was still moving after wrapping. Wait for the card's finite animations before measuring the completed wrap, retaining the per-input checks and the 30px growth assertion.
The complete journey also contained stale geometry expectations. Read the window boundary across the card's own columns, matching #4555's margin space beside the floating panel. Compare a shrinking card with its source after native insertion scrolls the page. After sending, require the reply control to keep its pressed position subject to the window's top boundary: the newly sent turn can need more room above that control than the window provides. All caret, send, and arriving-answer checks remain exercised. No product behavior changes.
Verification: the previous head's CI failed at the tall-card boundary (892px versus 834px); correcting the probe exposed and reproduced the shrink and constrained-send expectations locally. The full journey now passes on Linux at normal speed and with Chromium slowed sixfold. Eight related cases covering the probe's consumers, draft growth, paste, and send/admission passed; Ruff and formatting checks passed. macOS verification remains for CI.
Refs #4472 — automated triage