mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-06 02:48:13 +00:00
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:
parent
68cccc830d
commit
2e9326523a
1 changed files with 6 additions and 7 deletions
|
|
@ -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 () => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue