Skip to content

Commit

Permalink
More sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhollas committed Oct 14, 2024
1 parent 9ecfa53 commit e8c2924
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion tests_notebooks/test_manage_app.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
from time import sleep

#from selenium.webdriver.common.by import By


Expand All @@ -8,3 +9,4 @@ def test_single_app(selenium_driver, final_screenshot):
selenium.set_window_size(1440, 828)
#selenium.find_element(By.XPATH, "//button[contains(.,'Uninstall')]")
#selenium.find_element(By.XPATH, "//button[contains(.,'Install')]")
sleep(10)
4 changes: 3 additions & 1 deletion tests_notebooks/test_start.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
import time
from contextlib import contextmanager

Expand Down Expand Up @@ -37,7 +36,10 @@ def test_click_help(selenium_driver, final_screenshot):
with get_new_windows(selenium) as handles:
selenium.find_element(By.CSS_SELECTOR, ".fa-question").click()
assert len(handles) == 1
# Redirect to https://aiidalab.readthedocs.io
selenium.switch_to.window(handles.pop())
# TODO: Instead of selecting a specific element on the Docs page,
# validate the URL.
#selenium.find_element(By.CSS_SELECTOR, ".mr-md-2").click()


Expand Down
3 changes: 1 addition & 2 deletions tests_notebooks/test_terminal.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
from time import sleep

from selenium.webdriver.common.by import By
Expand All @@ -19,4 +18,4 @@ def test_terminal(selenium_driver, final_screenshot):
selenium.find_element(By.CSS_SELECTOR, ".xterm-helper-textarea").send_keys(
Keys.ENTER
)
sleep(1)
sleep(2)

0 comments on commit e8c2924

Please sign in to comment.