From 105d21a6dc35b3555ee9d0068b8b6f50f61f6547 Mon Sep 17 00:00:00 2001 From: Marek Stastny Date: Wed, 18 Dec 2024 13:45:06 +0100 Subject: [PATCH] Update master views Fix for all tests in ui/master/test_tenant --- testsuite/ui/views/master/audience/tenant.py | 2 +- testsuite/ui/views/master/foundation.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/testsuite/ui/views/master/audience/tenant.py b/testsuite/ui/views/master/audience/tenant.py index 9ab758b73..0b4142c58 100644 --- a/testsuite/ui/views/master/audience/tenant.py +++ b/testsuite/ui/views/master/audience/tenant.py @@ -66,7 +66,7 @@ class TenantDetailView(BaseMasterAudienceView): path_pattern = "/buyers/accounts/{account_id}" edit_button = ThreescaleEditButton() - applications_button = Text("//*[contains(@title,'applications')]") + applications_button = Text("//*[@data-ouia-component-id='OUIA-Generated-NavExpandable-3']/button") public_domain = Text(".//th[contains(text(),'Public domain')]/parent::*/td/a") admin_domain = Text(".//th[contains(text(),'Admin domain')]/parent::*/td/a") resume_b = Button("Resume", classes=["button-to", "resume"]) diff --git a/testsuite/ui/views/master/foundation.py b/testsuite/ui/views/master/foundation.py index 5bbb44120..0d45ddb79 100644 --- a/testsuite/ui/views/master/foundation.py +++ b/testsuite/ui/views/master/foundation.py @@ -21,8 +21,8 @@ class BaseMasterView(View, Navigable): support_link = Text("//a[@href='//access.redhat.com/products/red-hat-3scale#support']") master_header = Text("//*[contains(@class,'Header--master')]") context_menu = Dropdown(component_id="context-selector") - documentation = Dropdown(component_id="OUIA-Generated-Dropdown-2") - user_session = Dropdown(component_id="OUIA-Generated-Dropdown-3") + documentation = Dropdown(component_id="OUIA-Generated-DropdownToggle-2") + user_session = Dropdown(component_id="OUIA-Generated-DropdownToggle-3") threescale_version = Text("//*[contains(@class,'powered-by-3scale')]/span") def __init__(self, parent, logger=None, **kwargs):