Fix failing Chat tests: correct tool call badge assertions
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -675,8 +675,8 @@ describe("Chat message rendering — unified tool call UI", () => {
|
||||
});
|
||||
|
||||
expect(await screen.findByText("I'll read that file.")).toBeInTheDocument();
|
||||
// Tool call badge should appear showing the function name
|
||||
expect(await screen.findByText(/Read/)).toBeInTheDocument();
|
||||
// Tool call badge should appear showing the function name and first arg
|
||||
expect(await screen.findByText("Read(src/main.rs)")).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it("renders collapsible tool output for tool role messages (AC3)", async () => {
|
||||
@@ -766,7 +766,7 @@ describe("Chat message rendering — unified tool call UI", () => {
|
||||
capturedWsHandlers?.onUpdate(messages);
|
||||
});
|
||||
|
||||
expect(await screen.findByText(/Bash/)).toBeInTheDocument();
|
||||
expect(await screen.findByText(/Read/)).toBeInTheDocument();
|
||||
expect(await screen.findByText("Bash(cargo test)")).toBeInTheDocument();
|
||||
expect(await screen.findByText("Read(Cargo.toml)")).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user