mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-11 03:38:38 +00:00
fix(test): update TeamInfo virtual keys tests for removed member count display
Updates two tests in TeamInfo.test.tsx that were asserting for "X Members" text that was removed from the TeamVirtualKeysTable component in commit ec4ef9c924.
- Changed test "should display X Members in Virtual Keys tab when navigated to" to assert for pagination controls instead
- Changed test "should show Filters and pagination controls in Virtual Keys tab" to wait for Filters button instead of member count
All 29 tests now pass.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
fc81edc4c4
commit
efcde74711
1 changed files with 2 additions and 3 deletions
|
|
@ -634,7 +634,7 @@ describe("TeamInfoView", () => {
|
|||
await user.click(virtualKeysTab);
|
||||
|
||||
await waitFor(() => {
|
||||
expect(screen.getByText("5 Members")).toBeInTheDocument();
|
||||
expect(screen.getByText("Page 1 of 1")).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -679,9 +679,8 @@ describe("TeamInfoView", () => {
|
|||
await user.click(virtualKeysTab);
|
||||
|
||||
await waitFor(() => {
|
||||
expect(screen.getByText("1 Member")).toBeInTheDocument();
|
||||
expect(screen.getByRole("button", { name: "Filters" })).toBeInTheDocument();
|
||||
});
|
||||
expect(screen.getByRole("button", { name: "Filters" })).toBeInTheDocument();
|
||||
expect(screen.getByRole("button", { name: "Reset Filters" })).toBeInTheDocument();
|
||||
expect(screen.getByText("Page 1 of 1")).toBeInTheDocument();
|
||||
expect(screen.getByRole("button", { name: "Previous" })).toBeInTheDocument();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue