Repository navigation
fix: measure margin marker scrolling from its own starting position - #4694
Merged
Merged
Conversation
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
This was referenced Oct 30, 2026
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 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