Repository navigation
test: expect the "awaits" resting status and an agent reply's drawn HTML in two stale tests - #6285
Merged
Merged
Conversation
…TML in two tests main's changes left stale #6262 reworded the panel's resting line from "Ready — select text to comment" to "Claude awaits", and test_the_state_wait_covers_a_status_that_moves_neither_log_nor_data still looked for "Ready". It now looks for "awaits". #6218 made every agent message read as Markdown with HTML, so a block of tags in an agent's reply draws as its elements. test_a_reply_renders_its_markdown_and_a_suggestion_shows_its_characters still waited for the <lf-callout> block as a paragraph of literal tags. It now holds the drawn lf-callout, and its fixture writes Vec<T> in a code span, as an agent must now that a stray tag in an agent message is refused. Behavior changed: the reply test no longer asserts that raw tags in an agent's message show as characters, since #6218 deliberately reversed that. Refs #3985
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.
Two tests on
mainassert behavior that a merged change deliberately reversed. Both fail every time on currentmainand pass with this change (run locally onorigin/mainat66b3883a4). The same failures are in run 44038409739.tests/browser/test_render_gate.py::test_the_state_wait_covers_a_status_that_moves_neither_log_nor_dataasserted"Ready"in the leaf'saria-label. Have the panel's resting line say the agent awaits, in place of "Ready — select text to comment" #6262 changed the resting line to "Claude awaits", so the label now readsPage menu · Claude awaits. The test now looks forawaits. It still checks the same thing: the status the server holds is on screen once the state wait ends.tests/browser/projection/test_thread_replies.py::test_a_reply_renders_its_markdown_and_a_suggestion_shows_its_characterswaited 120 s for a paragraph containing the literal text<lf-callout>. Read every agent message's HTML, and drop the html field from the log #6218 (bisected) made every agent message read as Markdown with HTML, so that block now draws as anlf-calloutelement. The test now checks for the drawnlf-callout > div. The fixture'sVec<T>moves into a code span, because Read every agent message's HTML, and drop the html field from the log #6218 refuses a stray tag in an agent message. The"Vec<T>" in textcheck still passes, now from the code span.Behavior no longer asserted: raw tags in an agent's reply showing as characters, which #6218 removed on purpose. User messages and suggestions still show tags as words. The suggestion subtest is unchanged.
The run's third new failure,
test_a_drag_that_overshoots_the_layer_is_not_a_passage, has a different cause (bisected to #6254) and is tracked separately.Refs #3985 — automated triage