Skip to content

fix: measure margin marker scrolling from its own starting position - #4694

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-4672
Oct 29, 2026
Merged

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The margin test compared marker navigation with a scroll position recorded before editing a reply. On current main it fails with 13px versus 0px, but instrumenting the journey shows the page already at 13px before Home or ArrowDown. Opening the card still passes its original unchanged-scroll assertion.

Record the marker walk's baseline after entering the margin, then assert that both Home and ArrowDown preserve it. The original card-opening assertion and reply, draft, reopen, and focus checks remain intact; product behavior is unchanged. This keeps the test aligned with the separate opening and navigation guarantees while allowing the intervening editor interactions to reveal their caret, behavior discussed in #3772.

Verification: the reported test failed before the change and passed after it at normal speed. It also passed with Chromium slowed sixfold; Ruff lint and formatting checks pass.

Closes #4672 — automated triage

Keep the opening and marker-navigation scroll guarantees separate. Intervening reply editing can reveal the caret and move the document; it is outside either assertion. Check both Home and ArrowDown against the walk baseline.

Closes #4672
@leaf-agent
leaf-agent merged commit 78898c9 into main Oct 29, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4672 branch October 29, 2026 12:25
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.

Walking margin markers scrolls a page that the test expects to stay fixed

1 participant