mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
test(e2e/ui): select 50 rows per page before asserting the Tags and Model Hub tables overflow
#39680 made every admin table honor the selected page size, so the Tags and Model Hub tables now paginate at 25 by default and the two scroll specs, which seed 40 rows and expect them all on one page, fail on every litellm-e2e-ui run since (builds 206 to 208). Selecting 50 rows first, the way the Request Logs spec already does, keeps the overflow assertion meaningful
This commit is contained in:
parent
0ad361a728
commit
5298deb491
1 changed files with 2 additions and 0 deletions
|
|
@ -184,6 +184,7 @@ test.describe("Admin tables scroll inside the page", () => {
|
|||
);
|
||||
try {
|
||||
await navigateToPage(page, Page.TagManagement);
|
||||
await setRowsPerPage(page, "50");
|
||||
await expectRowsAtLeast(page, SEED_ROWS);
|
||||
expect(await rowsPaintingPastAnAncestor(page)).toEqual([]);
|
||||
} finally {
|
||||
|
|
@ -207,6 +208,7 @@ test.describe("Admin tables scroll inside the page", () => {
|
|||
);
|
||||
try {
|
||||
await navigateToPage(page, Page.ModelHubTable);
|
||||
await setRowsPerPage(page, "50");
|
||||
await expectRowsAtLeast(page, SEED_ROWS);
|
||||
expect(await rowsPaintingPastAnAncestor(page)).toEqual([]);
|
||||
} finally {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue