Skip to content

test: correct margin reply motion and geometry expectations - #4689

Merged
leaf-agent merged 4 commits into
mainfrom
fix/issue-4472
Oct 29, 2026
Merged

leaf-agent merged 4 commits into
mainfrom
fix/issue-4472

Conversation

@leaf-agent

@leaf-agent leaf-agent commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

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

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 leaf-agent changed the title fix: wait for margin Send motion after wrapping test: correct margin reply motion and geometry expectations Oct 29, 2026

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
@leaf-agent
leaf-agent merged commit 01ae616 into main Oct 29, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4472 branch October 29, 2026 11:45
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.

1 participant