diff --git a/web/src/components/structured/StructuredPane.test.tsx b/web/src/components/structured/StructuredPane.test.tsx index 8e62de2..da6a688 100644 --- a/web/src/components/structured/StructuredPane.test.tsx +++ b/web/src/components/structured/StructuredPane.test.tsx @@ -170,16 +170,14 @@ describe("tool rows and activity groups", () => { snapshot(socket, [ chunk("user:1", "user", "go"), row("tool:1", "tool_call", { title: "Read(a.ts)", kind: "read", status: "completed" }), - chunk("agent:1", "agent_text", "still working"), row("tool:2", "tool_call", { title: "Read(b.ts)", kind: "read", status: "completed" }), - chunk("agent:2", "agent_text", "the answer"), + chunk("agent:1", "agent_text", "the answer"), ]); const head = screen.getByText(/^2 tool calls/).closest("button")!; expect(head.getAttribute("aria-expanded")).toBe("false"); - // The final answer stays outside the group; the intermediate text is in it. + // The final answer stays outside the group. expect(document.querySelector(".st-tool-group")!.contains(screen.getByText("the answer"))).toBe(false); - expect(document.querySelector(".st-tool-group")!.contains(screen.getByText("still working"))).toBe(true); fireEvent.click(head); expect(head.getAttribute("aria-expanded")).toBe("true");