From 3c8678bd7e20dc96acc0554183992cf3455113e6 Mon Sep 17 00:00:00 2001 From: Nikita Karetnikov Date: Sat, 17 Feb 2024 19:48:07 +0100 Subject: [PATCH] Fix: use `get_by_text` to click on dropdown --- test/playwright/test_ux.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/playwright/test_ux.py b/test/playwright/test_ux.py index 7ce8f691..3e8a6777 100644 --- a/test/playwright/test_ux.py +++ b/test/playwright/test_ux.py @@ -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