File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -1304,16 +1304,19 @@ export async function filterAndTestLastPagePagination(
1304
1304
await expect ( getFirstRowNthColumnCellLocator ( page , 0 ) ) . toBeVisible ( ) ;
1305
1305
1306
1306
// Should start on first page, and there should be multiple pages available
1307
- await expect ( page . getByText ( PAGE_COUNT_REGEX , { exact : true } ) ) . toHaveText (
1308
- / P a g e 1 o f [ 0 - 9 ] + /
1309
- ) ;
1310
1307
await expect (
1311
- page . getByText ( PAGE_COUNT_REGEX , { exact : true } )
1308
+ page . locator ( ".MuiPaper-table" ) . getByText ( PAGE_COUNT_REGEX , { exact : true } )
1309
+ ) . toHaveText ( / P a g e 1 o f [ 0 - 9 ] + / ) ;
1310
+ await expect (
1311
+ page . locator ( ".MuiPaper-table" ) . getByText ( PAGE_COUNT_REGEX , { exact : true } )
1312
1312
) . not . toHaveText ( "Page 1 of 1" ) ;
1313
1313
1314
1314
// Detect number of pages
1315
1315
const splitStartingPageText = (
1316
- await page . getByText ( PAGE_COUNT_REGEX , { exact : true } ) . innerText ( )
1316
+ await page
1317
+ . locator ( ".MuiPaper-table" )
1318
+ . getByText ( PAGE_COUNT_REGEX , { exact : true } )
1319
+ . innerText ( )
1317
1320
) . split ( " " ) ;
1318
1321
const maxPages = parseInt (
1319
1322
splitStartingPageText [ splitStartingPageText . length - 1 ]
You can’t perform that action at this time.
0 commit comments