Skip to content

test: expect the shipped long thread's card slim, and its reply box inside the card - #6839

Merged
max-sixty merged 1 commit into
mainfrom
shipped-long-thread-slim-card
Nov 23, 2026
Merged

max-sixty merged 1 commit into
mainfrom
shipped-long-thread-slim-card

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Closes #6139.

tests/journeys/margin/test_card_placement.py::test_the_shipped_long_thread_keeps_the_margin_and_its_height has failed in the nightly run since #5991, first on assert 320 >= 379: it still expected the card at the measure's width. #5991's rule keeps a thread card at its least width until a message it shows stands taller than it is wide (standsTall, comment-placement.js). The tallest message in the shipped long thread, the agent's checklist, stands 249px tall in a 290px text box, so the slim card is right and the test was stale, as six of its siblings were before #6146.

Past that first assertion the test held two more expectations that later changes had made stale, which the nightly run never reached:

  • At 1436×1000 it expected the card to reach the window's edge. The slim card now ends 14px short of it, so the test expects the least width, inside the window.
  • At 1280×600 it waited for the reply's editor and Send to stand inside the card's thread box. Since Run a thread card's reply box to the card's edges, and stand every thread's words one inset in #6773 a card's reply box runs over the card's padding to its sides and foot: 2px inside the card's edge and 5px past the thread box. The test now waits for them inside the card.

Both card-width checks read the least width from the runtime's cardMinimum(), as test_render_send_placement.py does, rather than hard-coding 320. Both also check that the card crosses its controls (cardLeft < controlsRight), which the docstring promises and nothing checked.

The test fails on main and passes with this change, run by node id: uv run pytest "tests/journeys/margin/test_card_placement.py::test_the_shipped_long_thread_keeps_the_margin_and_its_height" -n0.

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

…nside the card

`test_the_shipped_long_thread_keeps_the_margin_and_its_height` has failed
in the nightly run since #5991, first on `assert 320 >= 379`. #5991's
rule keeps a thread card at its least width until a message it shows
stands taller than it is wide (`standsTall`, comment-placement.js). In
this thread the tallest message, the agent's checklist, stands 249px
tall in a 290px text box, so the slim card is right and the test was
stale, as six of its siblings were before #6146.

Past that first assertion the test held two more expectations that
later changes had made stale, which the nightly run never reached:

- At 1436x1000 it expected the card to reach the window's edge, where
  the slim card now ends 14px short. It now expects the least width,
  inside the window.
- At 1280x600 it waited for the reply's editor and Send to stand inside
  the card's thread box, but a card's reply box now runs over the
  card's padding to its sides and foot (#6773), 2px inside the card's
  edge and 5px past the thread's. It now waits for them inside the
  card.

Both card-width checks read the least width from the runtime
(`cardMinimum()`), as `test_render_send_placement.py` does, and both
check that the card crosses its controls, which the docstring promises
and nothing checked.
@max-sixty
max-sixty merged commit ea3ecb0 into main Nov 23, 2026
5 of 6 checks passed
@max-sixty
max-sixty deleted the shipped-long-thread-slim-card branch November 23, 2026 15:55
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.

Eleven margin and thread tests fail on main since #5991 slimmed the resting card

2 participants