diff --git a/frontend/__tests__/routes/settings.test.tsx b/frontend/__tests__/routes/settings.test.tsx index 951bc1e2c67b..e34d3466e9ea 100644 --- a/frontend/__tests__/routes/settings.test.tsx +++ b/frontend/__tests__/routes/settings.test.tsx @@ -108,7 +108,14 @@ describe("Settings Screen", () => { }); describe("LLM Settings", () => { - it.todo("should render the basic LLM settings"); + it("should render the basic LLM settings by default", async () => { + renderSettingsScreen(); + + screen.getByTestId("llm-provider-input"); + screen.getByTestId("llm-model-input"); + screen.getByTestId("llm-api-key-input"); + }); + it.todo( "should render the advanced LLM settings if the advanced switch is toggled", ); diff --git a/frontend/src/components/features/settings/settings-input.tsx b/frontend/src/components/features/settings/settings-input.tsx index 779ebb549d7b..cca3f40216c1 100644 --- a/frontend/src/components/features/settings/settings-input.tsx +++ b/frontend/src/components/features/settings/settings-input.tsx @@ -1,17 +1,25 @@ +import { cn } from "#/utils/utils"; + interface SettingsInputProps { testId?: string; label: string; type: React.HTMLInputTypeAttribute; + className?: string; } -export function SettingsInput({ testId, label, type }: SettingsInputProps) { +export function SettingsInput({ + testId, + label, + type, + className, +}: SettingsInputProps) { return ( -