Skip to content

Commit 87679f8

Browse files
committed
fix flaky test
1 parent 2044fbe commit 87679f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

onprc_ehr/test/src/org/labkey/test/tests/onprc_ehr/ONPRC_EHRTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2004,7 +2004,7 @@ public void testNotificationAdminAudits() throws Exception
20042004
// Identify two notifications by extracting their keys from the Run Report links
20052005
beginAt(WebTestHelper.getBaseURL() + "/ldk/" + getContainerPath() + "/notificationAdmin.view");
20062006
List<WebElement> runLinks = Locator.tagContainingText("a", "Run Report In Browser").findElements(getDriver());
2007-
Assert.assertTrue("Expected at least two notifications to be available", runLinks.size() >= 2);
2007+
waitFor(() -> runLinks.size() >= 2, "Expected at least two notifications to be available", WAIT_FOR_PAGE);
20082008

20092009
List<String> notifKeys = new ArrayList<>();
20102010
for (int i = 0; i < Math.min(2, runLinks.size()); i++)

0 commit comments

Comments
 (0)