Repository navigation
test: expect the hosted Send to leave focus on its thread, and its opening as a step - #6526
Merged
Merged
Conversation
…ening as a step The website journey's two cases asserted behavior two merged changes moved on purpose. #6472 lands a Send on its thread rather than in the reply box, so the test now expects the thread's view focused before the user writes on in the reply. #6508 draws a progress step, which the hosted turn's opening is, as the thread's working face rather than as an agent message, so the test now reads the opening from that face. Closes #6518
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.
Both cases of
test_a_website_turn_posts_its_answer_when_the_move_is_settled_first(tests/journeys/test_website_server.py) failed on main because two merged changes moved, on purpose, the behavior the test asserted. The test now expects what each change meant to do. No product code changes.landSent,thread/landing.js). The test expected the panel's reply box to be focused. It now expects the thread's view to be focused, the same change Land every Send on its thread, never in the box it sent from #6472 made to its sibling tests intest_sending.pyandtest_card_reply.py. The user then writes on in the reply throughwrite, which focuses the box, so the rest of the journey is unchanged.AppServerReplyStream.open,src/leaf/codex.py). Since End a progress step with its turn, and drop the progress disclosure #6508, the transcript draws a progress step only as the thread's working face (.lf-thread-working) and never as an.lf-msg. Once the focus assertion was fixed, this test stopped at its next check, which looked for the opening in.lf-msg[data-lf-author=agent]. The served state still carries the step with nocompleted_bywhile the turn runs, so the step stands as intended. The test now reads it from the face, as End a progress step with its turn, and drop the progress disclosure #6508's own updates totests/journeys/threads/test_agent_replies.pydo.The issue's bisect named only #6472, because the focus assertion failed first. With that assertion fixed,
git bisect runover[here]fromd8e0f446f(#6472) todd38dcb16namesf7f9e2170(#6508) for the second failure.Verification: both cases fail on
origin/main(78d3c5758) without this change and pass with it.ruffpasses. No other assertion in the test changed.Closes #6518 — automated triage