Skip to content

Commit 9fbbe80

Browse files
Update WNPRC_EHR/test/src/org/labkey/test/tests/wnprc_ehr/WNPRC_EHRTest.java
Co-authored-by: Trey Chadick <[email protected]>
1 parent 09522bb commit 9fbbe80

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

WNPRC_EHR/test/src/org/labkey/test/tests/wnprc_ehr/WNPRC_EHRTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3479,9 +3479,10 @@ public void updateProgramIncomeAccountWithValidPermissions() throws UnhandledAle
34793479
fillAnInputByName("newCreditToAccountField", "testString");
34803480
click(Locator.tagWithId("button","updateCreditToAccountButton"));
34813481

3482-
sleep(2000);
34833482
//Verifies the value has been changed, then continues. If value has not been changed, the test fails here.
3484-
assertEquals("Updated Program Income Account with invalid permissions.", "testString", Locator.id("ctaCell1").findElement(getDriver()).getText());
3483+
Awaitility.await().atMost(Duration.ofSeconds(2)).untilAsserted(() ->
3484+
assertEquals("Updated Program Income Account with invalid permissions.",
3485+
"testString", Locator.id("ctaCell1").findElement(getDriver()).getText()));
34853486

34863487
//Navigates to various containers and removes corresponding permissions.
34873488
stopImpersonating();

0 commit comments

Comments
 (0)