Skip to content

Commit

Permalink
WIP: Try using get_by_test_id
Browse files Browse the repository at this point in the history
  • Loading branch information
nkaretnikov committed Feb 17, 2024
1 parent 2d44894 commit 6bf45f5
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions test/playwright/test_ux.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,14 +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()
btn = page.get_by_role("row", name="ipykernel", exact=False).get_by_role("button")

for txt in page.get_by_text("", exact=False).all():
print("txt:", txt.text_content())

btn.first.click()

page.get_by_role("row", name="ipykernel", exact=False).get_by_test_id("ConstraintSelectTest").click()
page.get_by_role("option", name=">=").click()
# Note: purposefully not testing version constraint since there is inconsistent behavior here

Expand Down

0 comments on commit 6bf45f5

Please sign in to comment.