Repository navigation
test: wait for a card to rest before clicking into its reply - #7086
Merged
Merged
Conversation
`test_an_open_card_takes_news_without_moving_its_controls` clicked the card's reply box right after a step grew the card, while the step's arrival still carried the reply row down (300 ms). Playwright's reveal of its target then scrolled the page 420 px before the click landed, with no scroll of Leaf's, so the controls the test read next stood off the window and its last assertion compared them with where a later click brought them back. It failed eight runs in nine alone on an idle Mac, two of them on main's runtime, and passed in parallel runs, where the carry had ended by the click. The test now waits for the card's motion to rest before the click, as `test_margin_card_holds_its_top_while_read_and_its_reply_while_written` does. It protects the same behavior: the card's controls stay where they stood while news is held and when the notice shows it.
leaf-agent
approved these changes
Nov 24, 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.
tests/journeys/margin/test_card_placement.py::test_an_open_card_takes_news_without_moving_its_controlsclicked the card's reply box while a step's arrival still carried the reply row down (300 ms). Playwright's reveal of its target then scrolled the page 420 px before the click landed, with no scroll of Leaf's, and the test's last assertion compared controls read off the window with where a later click brought them back.It failed eight runs in nine alone on a Mac, two of them on main's runtime, and two of three inside a parallel run; it passes when the carry has ended by the click, so the daily run may show it only now and then. The test now waits for the card to rest before the click, as its sibling in
test_render_margin.pydoes; with the wait it passed nine runs in nine, four of them on main's runtime.Found while working on #7082, which doesn't cause it.