diff --git a/test/gui_user/scenarios/crewmate-create-first.yaml b/test/gui_user/scenarios/crewmate-create-first.yaml index 8990b178a619..c325369b77ff 100644 --- a/test/gui_user/scenarios/crewmate-create-first.yaml +++ b/test/gui_user/scenarios/crewmate-create-first.yaml @@ -38,6 +38,6 @@ steps: expectations: - The "New crewmate" dialog is closed. - A chat conversation is open and "Radar{attempt_suffix}" is visible in its header or on the selected crewmate card. - - A chat bubble containing "welcome to the team" is visible in the conversation (the greeting the page sends on your behalf). + - Without you typing anything, the conversation shows a reply bubble from the crewmate (on this test build it reads "pong from the fake ACP backend"). The crewmate speaks first; the note that starts it is hidden, so no bubble from you is expected above it. max_steps: 18 max_seconds: 480 diff --git a/test/gui_user/test_scenarios_and_report.py b/test/gui_user/test_scenarios_and_report.py index 94b5a7aaa27c..fd7c0fc01960 100644 --- a/test/gui_user/test_scenarios_and_report.py +++ b/test/gui_user/test_scenarios_and_report.py @@ -368,6 +368,23 @@ def test_crewmates_scenarios_name_the_current_preview_and_rail_label(self) -> No assert '"Crewmates" item appears in the left rail' in step, (path.name, step) assert checked >= 5 + def test_created_crewmate_speaks_first_with_no_user_greeting_bubble(self) -> None: + """A new crewmate's first turn is a hidden kickoff, so the only bubble is its reply. + + The create sends ``first_greeting`` and the server starts the + crewmate's first turn from a kickoff that is never written to the + transcript (``mate_welcome``). No user bubble is drawn, so an + expectation that asks for one fails on every nightly. + """ + sc = scenarios.load_scenario(SCENARIOS_DIR / "crewmate-create-first.yaml") + expectations = " ".join(sc.expectations) + assert "welcome to the team" not in expectations + assert "on your behalf" not in expectations + from kiro_crew.testing.fake_acp_backend import REPLY_TEXT + + assert f'"{REPLY_TEXT}"' in expectations + assert "no bubble from you" in expectations + def test_scenarios_name_the_dormant_row_by_its_shipped_sentence(self) -> None: """The dormant expander reads "1 dormant session hidden/shown".