Skip to content

Commit 2d57358

Browse files
committed
change the wait for splash timeout behavior: fail faster and hit it on the retry
1 parent 4218fea commit 2d57358

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

atest/Keywords.robot

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,18 +66,18 @@ Tear Down Everything
6666
Terminate All Processes kill=${True}
6767

6868
Wait For Splash
69-
Wait Until Page Contains Element ${SPLASH} timeout=180s
70-
Wait Until Page Does Not Contain Element ${SPLASH} timeout=180s
69+
Go To ${URL}lab?reset&token=${TOKEN}
70+
Set Window Size 1024 768
71+
Wait Until Page Contains Element ${SPLASH} timeout=30s
72+
Wait Until Page Does Not Contain Element ${SPLASH} timeout=10s
7173
Execute Javascript window.onbeforeunload \= function (){}
7274

7375
Open JupyterLab
7476
Set Environment Variable MOZ_HEADLESS ${HEADLESS}
7577
${firefox} = Which firefox
7678
${geckodriver} = Which geckodriver
7779
Create WebDriver Firefox executable_path=${geckodriver} firefox_binary=${firefox} service_log_path=${OUTPUT DIR}${/}geckodriver.log
78-
Wait Until Keyword Succeeds 20x 3s Go To ${URL}lab?reset&token=${TOKEN}
79-
Set Window Size 1024 768
80-
Wait For Splash
80+
Wait Until Keyword Succeeds 3x 5s Wait For Splash
8181

8282
Close JupyterLab
8383
Close All Browsers
@@ -95,7 +95,7 @@ Reset Application State
9595
Accept Default Dialog Option
9696
Ensure All Kernels Are Shut Down
9797
Lab Command Reset Application State
98-
Wait For Splash
98+
Wait Until Keyword Succeeds 3x 5s Wait For Splash
9999

100100
Accept Default Dialog Option
101101
[Documentation] Accept a dialog, if it exists

0 commit comments

Comments
 (0)