test(ui): render TeamSSOSettings under a premium session so the organization dropdown tests fetch

This commit is contained in:
mateo-berri 2026-09-10 13:41:37 -07:00
parent cc401c4041
commit 4de441c181

View file

@ -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