mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-12 03:48:56 +00:00
style(ui): format decision model selection regression
This commit is contained in:
parent
dc20b834d7
commit
aa86218906
1 changed files with 2 additions and 7 deletions
|
|
@ -201,17 +201,12 @@ describe("AddAutoRouterTab", () => {
|
|||
await userEvent.click(screen.getByRole("radio", { name: "Decisions Model" }));
|
||||
expect(screen.queryByLabelText("Classifier Model")).not.toBeInTheDocument();
|
||||
await userEvent.click(screen.getByRole("combobox", { name: "Decision model" }));
|
||||
expect(
|
||||
screen.queryByRole("option", { name: ALL_FAMILY_MODELS[0].model_group }),
|
||||
).not.toBeInTheDocument();
|
||||
expect(screen.queryByRole("option", { name: ALL_FAMILY_MODELS[0].model_group })).not.toBeInTheDocument();
|
||||
await userEvent.click(await screen.findByRole("option", { name: "my-decision" }));
|
||||
expect(screen.queryByRole("button", { name: "Routing approach" })).not.toBeInTheDocument();
|
||||
expect(screen.queryByRole("button", { name: "Choose models for me" })).not.toBeInTheDocument();
|
||||
expect(screen.queryByLabelText("Classifier Timeout (ms)")).not.toBeInTheDocument();
|
||||
expect(screen.getByRole("button", { name: "Advanced settings" })).toHaveAttribute(
|
||||
"aria-expanded",
|
||||
"false",
|
||||
);
|
||||
expect(screen.getByRole("button", { name: "Advanced settings" })).toHaveAttribute("aria-expanded", "false");
|
||||
await userEvent.click(screen.getByRole("button", { name: "Advanced classifier settings" }));
|
||||
fireEvent.change(screen.getByLabelText("Classifier Timeout (ms)"), { target: { value: "4200" } });
|
||||
fireEvent.change(screen.getByLabelText("Context Window Size"), { target: { value: "5" } });
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue