test(webui): follow updated settings labels

This commit is contained in:
chengyongru authored and chengyongru committed 2026-10-10 01:33:02 +08:00
1 parent 359bfeb6c3
commit b24afda28f
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -209,7 +209,7 @@ describe("Settings models", () => {
renderSettingsView({ initialSection: "models", initialSettings: payload });
await togglePresetEditor();
await openPopover(screen.getByRole("button", { name: "anthropic/claude-sonnet-4", exact: true }));
const search = screen.getByRole("combobox", { name: "Search or type model ID" });
const search = screen.getByRole("combobox", { name: "Choose model" });
fireEvent.change(search, { target: { value: "gpt-4o" } });
fireEvent.keyDown(search, { key: "Enter" });
await waitFor(() => expect(screen.getByLabelText("API connection")).toHaveTextContent("Auto (Chat Completions)"));