Skip to content

Commit c8de27d

Browse files
committed
Tests: Increase time to run all cells to make tests more robust
Increase waiting time and add sleep when a notebook is restarted. The notebook is sometimes run before jupyter has finished loading everything in the background.
1 parent 92fe2c9 commit c8de27d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def _selenium_driver(nb_path):
143143
# )
144144
# )
145145
restart_kernel_button = None
146-
waiting_time = 10
146+
waiting_time = 20
147147
start = time.time()
148148

149149
while restart_kernel_button is None and time.time() - start < waiting_time:
@@ -219,6 +219,7 @@ def _selenium_driver(nb_path):
219219
(By.CLASS_NAME, "jp-Notebook-ExecutionIndicator"), "data-status", "idle"
220220
)
221221
)
222+
time.sleep(1)
222223

223224
return selenium
224225

0 commit comments

Comments
 (0)