Repository navigation
fix: finish editor rendering before scrolling away in the thread test - #4977
Merged
Merged
Conversation
The macOS failure picture has the focused reply still visible with its new-reply notice. Holding rendering frames across typing and the test scroll reproduces that setup: after release the editor returns to y=790 in a 900px viewport. Waiting for rendering before the scroll preserves the intended off-screen setup and the incoming turn appears without moving the reading position. Assert the off-screen precondition so a setup regression fails at its cause. No runtime behavior changes. Closes #4917
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 scrolled-away reply test could scroll before the editor finished rendering. The macOS failure capture shows the reply box still on screen with “1 new reply”, so the test was exercising the visible editor's news hold rather than its intended off-screen arrival.
Wait for rendering after typing, then scroll away and assert that the focused box is below the viewport before delivering the reply. The message-count and reading-position assertions remain unchanged; no runtime or interface behavior changes.
Validation: holding rendering frames across typing and scrolling reproduced the wrong setup locally (box y=790 in a 900px viewport). Releasing those frames and waiting for rendering before scrolling passed the same experiment. Both existing variants pass normally and at 10× CPU throttle. The macOS result remains for CI verification.
Closes #4917 — automated triage