mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-08 22:21:35 +00:00
fix(e2e): assert the users table's own empty-state copy
UsersTable overrides DataTable's default noDataMessage with its own EmptyState, so the row reads "No users found" rather than "No results". Assert that, and pair it with the seeded user being absent so the check cannot pass while the filter silently does nothing.
This commit is contained in:
parent
c8b82aa0b6
commit
859bd01dda
1 changed files with 2 additions and 1 deletions
|
|
@ -46,6 +46,7 @@ test.describe("Internal Users Search", () => {
|
|||
await page.getByTestId("users-filter-sso-id").fill("e2e-sso-id-that-matches-nobody");
|
||||
await page.getByTestId("filter-drawer-apply").click();
|
||||
|
||||
await expect(page.getByRole("row").filter({ hasText: "No results" })).toBeVisible({ timeout: 30_000 });
|
||||
await expect(page.getByText("No users found")).toBeVisible({ timeout: 30_000 });
|
||||
await expect(userRows(page).filter({ hasText: "noteam@test.local" })).toHaveCount(0);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue