Update ui/litellm-dashboard/src/app/(dashboard)/models-and-endpoints/ModelsAndEndpointsView.test.tsx

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
Cesar Garcia 2026-03-04 18:01:28 -03:00 • committed by GitHub
parent 68cccc830d
commit 2e9326523a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -172,15 +172,14 @@ describe("ModelsAndEndpointsView", () => {
// Find and click dismiss button (X button)
const dismissButton = container.querySelector('button[aria-label="Dismiss banner"]');
if (dismissButton) {
fireEvent.click(dismissButton);
expect(dismissButton).not.toBeNull();
fireEvent.click(dismissButton!);
// Banner should be hidden
expect(queryByText("Missing a provider?")).not.toBeInTheDocument();
// Banner should be hidden
expect(queryByText("Missing a provider?")).not.toBeInTheDocument();
// LocalStorage should be updated
expect(localStorageMock.getItem("hideMissingProviderBanner")).toBe("true");
}
// LocalStorage should be updated
expect(localStorageMock.getItem("hideMissingProviderBanner")).toBe("true");
}, 15000);
it("should show compact Request Provider button when banner is dismissed", async () => {