Repository navigation
Align comment editor tests with retained drafts - #1551
Merged
Merged
Conversation
An open comment now remains in the usable window when its passage scrolls away. Update the nightly browser cases to verify its words, focus, and attachment while the target is visible, then its window placement after the target leaves. A restored draft may choose another vertical side at its restored scroll position; its lane remains fixed.
leaf-agent
commented
Oct 2, 2026
leaf-agent
left a comment
Collaborator
Author
There was a problem hiding this comment.
The existing four-case scroll-away/return test checks the editor only after the target comes back, and its description still says a pane hides the editor. The new pane test covers one of those cases, but the other target and scroller combinations could lose the focused draft while away without failing. The matrix should check the visible editor, focus, and draft before scrolling back.
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 complete-suite run on main at 87983c2d found browser tests that still expected an open comment editor to leave with its passage. The runtime now keeps a writer's draft and focus in the usable window when the passage scrolls away, including inside a bounded pane. These tests now check that attachment while the passage is visible and the focused, word-preserving window posture after it leaves.
The five affected cases failed on current main before this change and pass locally after it. This updates test expectations for the behavior shipped in #1536; it does not change the runtime. Other failures in the run have separate causes.