Skip to content

test: put thread HTML in the message text in the browser and journey tests #6208 missed - #6225

Merged
leaf-agent merged 1 commit into
mainfrom
fix/thread-markup-test-callers
Nov 16, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/thread-markup-test-callers

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

#6208 removed the separate markup argument from post_reply and cmd_comment, so an agent message is now one Markdown body that holds its HTML. Seventeen callers in tests/browser/ and tests/journeys/ still passed markup positionally. A pull request runs only the later-tier tests it edits, so they first failed on main: push run 43956121090 failed 15 browser tests with TypeError: post_reply() takes 3 positional arguments but 4 were given (or the cmd_comment equivalent). Each caller now writes the HTML into the text after a blank line, with html=True on post_reply, the same form #6208 gave the callers it updated. The three that passed None as markup now drop that argument.

One test changes what it covers. test_a_durable_reply_completes_its_stream_placeholder_in_place used to end by editing the completed reply and checking that its widget survived. That reply holds HTML, and #6208 freezes such a message whole (leaf thread edit refuses it with edit-holds-html), so the agent can no longer send that edit. The test still checks that the durable reply completes the stream placeholder in place and draws its widget.

Verification: before this change, the 15 browser tests named in that run failed with the TypeError. With it, they pass locally, along with the three journey-tier tests that make the same calls (28 passed, -n 4). An AST scan of the tree finds no remaining call that passes markup.

This leaves two other failures from that run, both with owners: #6139 (test_a_root_summary_keeps_thread_actions_outside_its_fold), and the −54 px lf-compose-placeholder-enters shift in test_an_arrival_the_opening_view_will_cover_puts_it_away. That shift still reproduces on main after #6153, so it goes back to #5642.

Refs #3985 — automated triage

… tests #6208 missed

#6208 dropped the separate markup argument from post_reply and cmd_comment,
but seventeen browser- and journey-tier call sites still passed it
positionally and failed with a TypeError on main's push run. They now put
the HTML in the message's text (post_reply with html=True, as `leaf thread
reply` does).

test_a_durable_reply_completes_its_stream_placeholder_in_place no longer
edits the completed reply: it holds HTML, which #6208 froze whole, so
`leaf thread edit` refuses that edit. The test keeps the stream placeholder
being completed in place with its widget.

Refs #3985
@leaf-agent
leaf-agent merged commit e44302f into main Nov 16, 2026
6 checks passed
@leaf-agent
leaf-agent deleted the fix/thread-markup-test-callers branch November 16, 2026 23:55
max-sixty added a commit that referenced this pull request Nov 17, 2026
…e body

#6225 put each test's widget into its message text and passed html=True, the
parameter this branch removes; every agent message now reads its HTML.
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.

1 participant