style(webui): refine first-run model prompt

This commit is contained in:
Xubin Ren committed 2026-09-02 16:25:07 +08:00
1 parent 138bf3c0b8
commit 1c1f746903
3 files changed
+60 -1

No files matched your search

+4
View File
@@ -876,6 +876,10 @@ describe("ThreadShell", () => {
const badge = await screen.findByRole("button", { name: "Choose your AI" });
expect(screen.queryByTestId("composer-model-setup-icon")).not.toBeInTheDocument();
expect(badge.querySelector('[data-needs-setup="true"]')).toHaveClass(
"composer-model-pill-setup",
);
expect(screen.getByTestId("composer-model-setup-label")).toHaveTextContent("Choose your AI");
expect(badge).not.toHaveClass("border-amber-500/35");
expect(screen.queryByTestId("composer-model-logo-openai_codex")).not.toBeInTheDocument();
fireEvent.click(badge);