Skip to content

Commit 573b36d

Browse files
committed
Removed sleep and extended expected timeout.
Previously the timeout was 1 sec and the alert was delayed 500ms. With a normal execution it seems that that 500ms diference is just not long enough to reasonably expect the alert to appear. In reviewing this test it was shown any delay was useful and the needed time for an alert to triggered and then recognized would need more than 500ms.
1 parent b1dd105 commit 573b36d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

atest/acceptance/keywords/alerts.robot

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ Handle Alert returns message
4343

4444
Handle Alert with custom timeout
4545
Click Button Slow alert
46-
Sleep 0.1s
47-
Handle Alert timeout=1s
46+
Handle Alert timeout=2s
4847
Click Button Slow alert
4948
Run Keyword And Expect Error
5049
... Alert not found in 1 millisecond.

0 commit comments

Comments
 (0)