mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-11 22:51:28 +00:00
test(ui): render TeamSSOSettings under a premium session so the organization dropdown tests fetch
This commit is contained in:
parent
cc401c4041
commit
4de441c181
1 changed files with 13 additions and 0 deletions
|
|
@ -8,6 +8,19 @@ import { toast } from "@/lib/toast";
|
|||
|
||||
vi.mock("./networking");
|
||||
|
||||
vi.mock("@/app/(dashboard)/hooks/useAuthorized", () => ({
|
||||
default: () => ({
|
||||
token: "test-token",
|
||||
accessToken: "test-token",
|
||||
userId: "test-user",
|
||||
userEmail: "test-user@example.com",
|
||||
userRole: "Admin",
|
||||
premiumUser: true,
|
||||
disabledPersonalKeyCreation: null,
|
||||
showSSOBanner: false,
|
||||
}),
|
||||
}));
|
||||
|
||||
vi.mock("./common_components/budget_duration_dropdown", () => {
|
||||
const BudgetDurationDropdown = ({ value, onChange }: { value: string | null; onChange: (value: string) => void }) => (
|
||||
<select
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue