Skip to content

Commit

Permalink
#148 Added missing assertion message
Browse files Browse the repository at this point in the history
  • Loading branch information
gkunze committed Jun 4, 2021
1 parent 295756f commit 71742cd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ public void testOptionalWaitUntil()
long endTime = new Date().getTime();
assertFalse("the privacy message dialog was unexpectedly hidden during the timeframe", isHidden);
int waitingTime = Neodymium.configuration().optionalElementRetryTimeout() * Neodymium.configuration().optionalElementRetryCount();
Assert.assertTrue(Range.between(waitingTime, waitingTime + Neodymium.configuration().optionalElementRetryTimeout())
Assert.assertTrue("Runtime was shorter than expected", Range.between(waitingTime, waitingTime + Neodymium.configuration().optionalElementRetryTimeout())
.contains(Math.toIntExact(endTime - startTime)));
}

Expand All @@ -670,7 +670,7 @@ public void testOptionalWaitWhile()
long endTime = new Date().getTime();
assertFalse("the privacy message dialog was unexpectedly during within the timeframe", isHidden);
int waitingTime = Neodymium.configuration().optionalElementRetryTimeout() * Neodymium.configuration().optionalElementRetryCount();
Assert.assertTrue(Range.between(waitingTime, waitingTime + Neodymium.configuration().optionalElementRetryTimeout())
Assert.assertTrue("Runtime was shorter than expected", Range.between(waitingTime, waitingTime + Neodymium.configuration().optionalElementRetryTimeout())
.contains(Math.toIntExact(endTime - startTime)));
privaceDialog.find(".btn-link").click();
isHidden = SelenideAddons.optionalWaitWhileCondition(privaceDialog, visible, Neodymium.configuration().optionalElementRetryTimeout());
Expand Down

0 comments on commit 71742cd

Please sign in to comment.