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:
yuneng-jiang 2026-03-07 18:10:49 -08:00
parent fc81edc4c4
commit efcde74711

View file

@ -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();