FN-6986: align task chat tool-call status expectations
Align TaskChatTab tests with lowercase tool-call status labels. - Update result tool-call assertion to expect lowercase status text. - Update error tool-call assertion to expect lowercase status text. Files changed: packages/dashboard/app/components/__tests__/TaskChatTab.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Fusion-Task-Id: FN-6986 Fusion-Task-Lineage: 1eb16aa3-9747-45d0-a18b-067c47892f1c
This commit is contained in:
@@ -800,7 +800,7 @@ describe("TaskChatTab", () => {
|
||||
|
||||
expect(toolGroup).toHaveAttribute("open");
|
||||
const invocation = screen.getByTestId("task-chat-tool-invocation");
|
||||
const kicker = screen.getByText("Tool call → Result");
|
||||
const kicker = screen.getByText("Tool call → result");
|
||||
expect(invocation).toHaveClass("task-chat-tool-entry", "task-chat-tool-invocation");
|
||||
expect(kicker).toHaveClass("task-chat-entry-kicker");
|
||||
expect(kicker).toBeVisible();
|
||||
@@ -857,7 +857,7 @@ describe("TaskChatTab", () => {
|
||||
|
||||
await user.click(within(summary as HTMLElement).getByText("1 tool call"));
|
||||
|
||||
expect(screen.getByText("Tool call → Error")).toBeVisible();
|
||||
expect(screen.getByText("Tool call → error")).toBeVisible();
|
||||
expect(screen.getByText("Error")).toBeVisible();
|
||||
expect(screen.getByText("stderr")).toBeVisible();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user