fix(webui): align fallback notice and clarify settings action

This commit is contained in:
Xubin Ren committed 2026-09-21 00:13:46 +08:00
1 parent 8473538e7a
commit 1bfb4f6fc7
13 files changed
+24 -14

No files matched your search

+1 -1
View File
@@ -1246,7 +1246,7 @@ describe("ThreadShell", () => {
expect(title).toBeVisible();
expect(screen.getByText("A fallback model handled this response.")).toBeVisible();
expect(screen.queryByText(/This response used a fallback model/)).not.toBeInTheDocument();
fireEvent.click(screen.getByRole("button", { name: "Open sign-in settings" }));
fireEvent.click(screen.getByRole("button", { name: "Open model settings" }));
expect(openSettings).toHaveBeenCalledOnce();
fireEvent.click(within(title.closest('[role="status"]') as HTMLElement).getByRole("button", { name: "Dismiss" }));
emit("openai_codex");