Skip to content

Commit

Permalink
notebook: wait for modal-backdrop to disappear
Browse files Browse the repository at this point in the history
  • Loading branch information
manics committed Feb 9, 2024
1 parent c581729 commit 739b344
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_offlinenotebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def wait_for_modal_dialog(self):
# https://stackoverflow.com/a/51842120
self.wait.until(
EC.invisibility_of_element_located(
(By.XPATH, "//div[@class='modal-dialog']")
(By.XPATH, "//div[@class='modal-backdrop']")
)
)

Expand All @@ -212,7 +212,7 @@ def test_offline_notebook(self, tmpdir):
# element_to_be_clickable doesn't actually mean clickable
self.wait_for_modal_dialog()
# Still doesn't work so force a pause
sleep(0.5)
sleep(2)
for n in range(EXPECTED_NUM_CELLS):
self.wait.until(
EC.element_to_be_clickable(
Expand Down

0 comments on commit 739b344

Please sign in to comment.