Skip to content

Commit

Permalink
Sleep more
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhollas committed Oct 24, 2024
1 parent cd14461 commit 089d124
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests_notebooks/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import time
from pathlib import Path
from urllib.parse import urljoin

Expand Down Expand Up @@ -109,13 +110,14 @@ def _selenium_driver(nb_path):

selenium.find_element(By.ID, "ipython-main-app")
selenium.find_element(By.ID, "notebook-container")
selenium.find_element(By.ID, "appmode-busy")
# We wait until the appmode spinner disappears. However,
# this does not seem to be fully robust, as the spinner might flash
# while the page is still loading. So we add explicit sleep here as well.
time.sleep(1)
WebDriverWait(selenium, 240).until(
ec.invisibility_of_element((By.ID, "appmode-busy"))
)
time.sleep(5)

return selenium

Expand Down

0 comments on commit 089d124

Please sign in to comment.