Skip to content

Commit 67f5dd4

Browse files
author
jpaten
committed
test: attempt to fix flakiness with filter counts (#4078)
1 parent 9f18017 commit 67f5dd4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

explorer/e2e/testFunctions.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,8 @@ export async function testFilterCounts(
531531
// Exit the filter menu
532532
await page.locator("body").click();
533533
await expect(page.getByRole("checkbox")).toHaveCount(0);
534+
// Wait for the table to load
535+
await expect(getFirstRowNthColumnCellLocator(page, 0)).toBeVisible();
534536
// Expect the displayed count of elements to be 0
535537
const firstNumber =
536538
filterNumber <= elementsPerPage ? filterNumber : elementsPerPage;
@@ -638,7 +640,7 @@ export async function testClearAll(
638640
* Get the first link to a backpage with specified backpage access
639641
* @param page - a Playright page locator
640642
* @param access - the string denoting the level of access desired
641-
* @returns a Pla
643+
* @returns a Playwright locator object to the first link to a backpage with the specified access
642644
*/
643645
const getBackpageLinkLocatorByAccess = (page: Page, access: string): Locator =>
644646
page

0 commit comments

Comments
 (0)