Skip to content

Commit

Permalink
Fix window size
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhollas committed Oct 21, 2024
1 parent d7cbf4c commit 8be78ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions tests_notebooks/test_manage_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
def test_single_app(selenium_driver, final_screenshot):
url_params = {"app": "aiidalab-widgets-base"}
selenium = selenium_driver("single_app.ipynb", url_params)
selenium.set_window_size(1440, 828)
selenium.set_window_size(950, 1000)
selenium.set_window_size(1000, 1100)
selenium.find_element(By.XPATH, "//button[contains(.,'Uninstall')]")
selenium.find_element(By.XPATH, "//button[contains(.,'Install')]")
4 changes: 2 additions & 2 deletions tests_notebooks/test_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def test_click_appstore(selenium_driver, final_screenshot):
assert len(handles) == 1
selenium.switch_to.window(handles.pop())
time.sleep(5)
selenium.set_window_size(950, 1200)
selenium.set_window_size(1000, 1100)
dropdown = selenium.find_element(
By.XPATH,
"//div[@id='notebook-container']/div[5]/div[2]/div[2]/div/div[3]/div/div[2]/div/select",
Expand All @@ -46,7 +46,7 @@ def test_click_help(selenium_driver, final_screenshot):

def test_click_filemanager(selenium_driver, final_screenshot):
selenium = selenium_driver("start.ipynb")
selenium.set_window_size(1200, 941)
selenium.set_window_size(1000, 941)
with get_new_windows(selenium) as handles:
selenium.find_element(By.CSS_SELECTOR, ".fa-file-text-o").click()
assert len(handles) == 1
Expand Down

0 comments on commit 8be78ed

Please sign in to comment.