diff --git a/frontend/src/components/ChatHeader.test.tsx b/frontend/src/components/ChatHeader.test.tsx index a562cb6..45c68ef 100644 --- a/frontend/src/components/ChatHeader.test.tsx +++ b/frontend/src/components/ChatHeader.test.tsx @@ -141,6 +141,18 @@ describe("ChatHeader", () => { expect(screen.getByText("StorkIt")).toBeInTheDocument(); }); + it("labels the claude-pty optgroup as 'Claude Code'", () => { + render(); + const optgroup = document.querySelector('optgroup[label="Claude Code"]'); + expect(optgroup).toBeInTheDocument(); + }); + + it("labels the Anthropic API optgroup as 'Anthropic API'", () => { + render(); + const optgroup = document.querySelector('optgroup[label="Anthropic API"]'); + expect(optgroup).toBeInTheDocument(); + }); + it("shows disabled placeholder when claudeModels is empty and no API key", () => { render( - + {(claudeModels.length > 0 || !hasAnthropicKey) && ( - + {claudeModels.length > 0 ? ( claudeModels.map((m: string) => (