Skip to content

Commit

Permalink
Merge pull request #372 from nkaretnikov/fix-playwright-test
Browse files Browse the repository at this point in the history
Fix playwright tests
  • Loading branch information
Nikita Karetnikov authored Feb 27, 2024
2 parents a65e13b + 301bd11 commit eea538f
Show file tree
Hide file tree
Showing 2 changed files with 20,770 additions and 15,154 deletions.
6 changes: 3 additions & 3 deletions test/playwright/test_ux.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def _create_new_environment(page, screenshot=False):
# ensure new filename in case this test is run multiple times
new_env_name = f'test_env_{random.randint(0, 100000)}'
# set timeout for building the environment
time_to_build_env = 2 * 60 * 1000 # 2 minutes in milliseconds
time_to_build_env = 5 * 60 * 1000 # 5 minutes in milliseconds

# Create the new environment
# click the + to create a new env
Expand Down Expand Up @@ -118,7 +118,7 @@ def _create_new_environment(page, screenshot=False):

# Interact with the environment shortly after creation
# click to open the Active environment dropdown manu
page.get_by_role("button", name=" - Active", exact=False).click()
page.get_by_text(" - Active", exact=False).click()
# click on the Active environment on the dropdown menu item (which is currently building)
page.get_by_role("option", name=" - Active", exact=False).click()
# ensure that the environment is building
Expand Down Expand Up @@ -193,7 +193,7 @@ def _existing_environment_interactions(page, env_name, time_to_build_env=3*60*10
# change the description
page.get_by_placeholder("Enter here the description of your environment").fill("new description")
# change the vesion spec of an existing package
page.get_by_role("row", name="ipykernel", exact=False).get_by_role("button").first.click()
page.get_by_role("row", name="ipykernel", exact=False).get_by_role("combobox").first.click()
page.get_by_role("option", name=">=").click()
# Note: purposefully not testing version constraint since there is inconsistent behavior here

Expand Down
Loading

0 comments on commit eea538f

Please sign in to comment.