Skip to content

Commit aeafe48

Browse files
committed
gui_e2e: wait for the OTel password dropdown to become openable
The stored-password dropdown fetches its entries asynchronously after mount and silently swallows clicks until they have arrived. CMK-36664 Change-Id: I7746834fe0f7eeaa4519e0d62cb5a8c14feab15d
1 parent 3d3f8c2 commit aeafe48

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/system/gui/testlib/playwright/pom/setup/otel/add_open_telemetry_collector_receiver.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,9 @@ def _fill_collector_receiver_properties(
186186
password_title = user_data["password"]["value"]
187187
if password_title in passwords_by_title:
188188
self.add_new_password(receiver_type, passwords_by_title[password_title])
189-
self.click_on_last_locator(self.password_dropdown(receiver_type))
189+
password_dropdown = self.password_dropdown(receiver_type).last
190+
expect(password_dropdown).not_to_have_class(re.compile(r"\bno_choices\b"))
191+
password_dropdown.click()
190192
self.dropdown_option(receiver_type, password_title, exact=True).click()
191193
if properties["endpoint"].get("event_console"):
192194
self.send_logs_to_event_console_checkbox(receiver_type).check()

0 commit comments

Comments
 (0)