Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.

Commit 85bd021

Browse files
committed
Test fix
1 parent 512f592 commit 85bd021

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

webview-ui/src/components/chat/__tests__/ErrorRow.spec.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ vi.mock("react-i18next", () => ({
3737
"chat:errorDetails.title": "Error Details",
3838
"chat:errorDetails.copyToClipboard": "Copy to Clipboard",
3939
"chat:errorDetails.copied": "Copied!",
40-
"chat:errorDetails.downloadDiagnostics": "Download diagnostics info",
40+
"chat:errorDetails.diagnostics": "Get detailed error info",
4141
}
4242
return map[key] ?? key
4343
},
@@ -58,8 +58,8 @@ describe("ErrorRow diagnostics download", () => {
5858
const infoButton = screen.getByRole("button", { name: "Error Details" })
5959
fireEvent.click(infoButton)
6060

61-
// Click the Download diagnostics button
62-
const downloadButton = screen.getByRole("button", { name: "Download diagnostics info" })
61+
// Click the diagnostics button
62+
const downloadButton = screen.getByRole("button", { name: "Get detailed error info" })
6363
fireEvent.click(downloadButton)
6464

6565
expect(mockPostMessage).toHaveBeenCalled()

0 commit comments

Comments
 (0)