Repository navigation
test: give the chart and diff reply fixtures an opening tag alone on its line - #6293
Merged
Merged
Conversation
…its line #6247 reads an agent message's HTML by CommonMark's rules, under which a block of HTML starts only from an opening tag alone on its line. The two fixtures wrote `<lf-chart id=…><pre>` and `<lf-diff id=…><pre>` on one line, so the reply drew the widget inside a paragraph, the browser's parser moved the `<pre>` out of it, and the chart threw "has no data body" and the diff never rendered. The fixtures are seeded past admission, which would refuse them, so nothing reported the shape. They now put `<pre>` on its own line, as #6247 did for its own fixtures; what the tests protect (a chart drawing at its visible width once its thread opens, a scroll box in a reply taking the keyboard) is unchanged. Closes #6291
This was referenced Nov 17, 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.
#6247 reads an agent message's HTML by CommonMark's rules, under which a block of HTML starts only from an opening tag alone on its line (
skills/leaf/references/threads.md). The two failing tests seed replies whose widget opens<lf-chart id=…><pre>and<lf-diff id=…><pre>on one line. Markdown now wraps that in a<p>, the browser's parser closes the paragraph at<pre>and moves the<pre>out of the widget, so the chart throws<lf-chart> has no data bodyand the diff never renders. The fixtures are seeded withappend_carried_log_record, past admission, so nothing reported the shape.The fixtures now put
<pre>on its own line, as #6247 did for its own fixtures (test_draw_failures.py,test_draft_editing.py). This keeps #6247's intent and moves no interface: the tests still check that a chart in a closed thread draws at its visible width once opened, and that a diff in a panel reply takes the keyboard.Verified locally: both tests fail on
main(the chart with the "no data body" error the issue quotes, the diff with the wait timeout) and pass with this change:tests/browser/widgets/test_charts.py::test_a_chart_in_a_closed_thread_draws_at_its_visible_width_when_openedtests/browser/controls/test_focus.py::test_a_scroll_box_in_a_panel_reply_takes_the_keyboardpassages.message_markupon the new fixtures now draws each widget as its own block with the<pre>whole inside it.Closes #6291 — automated triage