Skip to content

test: wait for a card to rest before clicking into its reply - #7086

Merged
max-sixty merged 1 commit into
mainfrom
card-news-click-waits
Nov 24, 2026
Merged

max-sixty merged 1 commit into
mainfrom
card-news-click-waits

Conversation

@max-sixty

@max-sixty max-sixty commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

tests/journeys/margin/test_card_placement.py::test_an_open_card_takes_news_without_moving_its_controls clicked 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.py does; 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.

This was written by Claude Code on behalf of max-sixty

`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.
@max-sixty
max-sixty merged commit bab8a00 into main Nov 24, 2026
6 checks passed
@max-sixty
max-sixty deleted the card-news-click-waits branch November 24, 2026 23:43
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.

2 participants