From 37cf13370af474d2f136d0b0ed0c911927378296 Mon Sep 17 00:00:00 2001 From: Nikita Karetnikov Date: Sun, 18 Feb 2024 03:03:52 +0100 Subject: [PATCH] Try matching by role --- 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 dcf0782f..5259a326 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_text(" - Active", exact=False).click() + page.get_by_role("combobox", name=" - 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