Repository navigation
test: expect the shipped long thread's card slim, and its reply box inside the card - #6839
Merged
Merged
Conversation
…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.
leaf-agent
approved these changes
Nov 23, 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.
Closes #6139.
tests/journeys/margin/test_card_placement.py::test_the_shipped_long_thread_keeps_the_margin_and_its_heighthas failed in the nightly run since #5991, first onassert 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:
Both card-width checks read the least width from the runtime's
cardMinimum(), astest_render_send_placement.pydoes, 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
mainand 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.