diff options
| author | Adam Malczewski <[email protected]> | 2026-10-15 09:19:43 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-10-15 09:19:43 +0900 |
| commit | 633b94326ec4b33fe19d65d02ef78d8a6b14e4e9 (patch) | |
| tree | da640b98bf65fba2cc5c1e96354b990ef7c04a63 /src/features/chat/ui.test.ts | |
| parent | ead9530e661a48050988450b6a70d2240f2ea8b1 (diff) | |
| download | dispatch-web-633b94326ec4b33fe19d65d02ef78d8a6b14e4e9.tar.gz dispatch-web-633b94326ec4b33fe19d65d02ef78d8a6b14e4e9.zip | |
feat(tool-call-cards): English tool names, no '{}' for argument-less calls, thinking-style dots while running
Diffstat (limited to 'src/features/chat/ui.test.ts')
| -rw-r--r-- | src/features/chat/ui.test.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/features/chat/ui.test.ts b/src/features/chat/ui.test.ts index c3a76d4..6a00e49 100644 --- a/src/features/chat/ui.test.ts +++ b/src/features/chat/ui.test.ts @@ -108,7 +108,7 @@ describe("ChatView", () => { const { container } = render(ChatView, { props: { chunks } }); await openAllCollapses(container); - expect(screen.getByText("read_file")).toBeInTheDocument(); + expect(screen.getByText("Read file")).toBeInTheDocument(); const pre = screen.getByText((content, element) => { return element?.tagName === "PRE" && content.includes("/tmp/test.txt"); }); @@ -134,7 +134,7 @@ describe("ChatView", () => { const { container } = render(ChatView, { props: { chunks } }); await openAllCollapses(container); - expect(screen.getByText("read_file")).toBeInTheDocument(); + expect(screen.getByText("Read file")).toBeInTheDocument(); expect(screen.getByText("file contents here")).toBeInTheDocument(); }); @@ -262,8 +262,8 @@ describe("ChatView", () => { // Both call names + the available result are shown; the result is absorbed // (no standalone tool-result card). - expect(screen.getByText("read_file")).toBeInTheDocument(); - expect(screen.getByText("list_dir")).toBeInTheDocument(); + expect(screen.getByText("Read file")).toBeInTheDocument(); + expect(screen.getByText("List dir")).toBeInTheDocument(); expect(screen.getByText("contents-of-a")).toBeInTheDocument(); }); @@ -781,7 +781,7 @@ describe("ChatView", () => { const { container } = render(ChatView, { props: { chunks } }); await openAllCollapses(container); - expect(screen.getAllByText("consult_vision").length).toBeGreaterThan(0); + expect(screen.getAllByText("Ask vision model").length).toBeGreaterThan(0); expect(screen.getByText("a red square on a white background")).toBeInTheDocument(); }); |
