Skip to content

Commit ee789c0

Browse files
committed
fix: tests
1 parent 91601cd commit ee789c0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/suites/paginatedTable/paginatedTable.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ test.describe('PaginatedTable', () => {
2020

2121
// Get initial row count (should be first chunk)
2222
const initialVisibleRows = await paginatedTable.getRowCount();
23-
expect(initialVisibleRows).toEqual(40); // Should not show all rows initially
23+
24+
// Safari shows 40 rows initially (1 + 1 overscan), other browsers show 60 (1 + 2 overscan)
25+
const expectedRows = page.context().browser()?.browserType().name() === 'webkit' ? 40 : 60;
26+
expect(initialVisibleRows).toEqual(expectedRows); // Should not show all rows initially
2427

2528
// Get data from first visible row to verify initial chunk
2629
const firstRowData = await paginatedTable.getRowData(0);

0 commit comments

Comments
 (0)