diff --git a/test/e2e/gui/main_window.py b/test/e2e/gui/main_window.py index 2f002fce1c..0cefcfef24 100644 --- a/test/e2e/gui/main_window.py +++ b/test/e2e/gui/main_window.py @@ -99,9 +99,15 @@ class LeftPanel(QObject): return self.user_badge_color == '#4ebc60' @allure.step('Open community portal') - def open_communities_portal(self) -> CommunitiesPortal: + def open_communities_portal(self, attempts: int = 2) -> CommunitiesPortal: self._communities_portal_button.click() - return CommunitiesPortal().wait_until_appears() + try: + return CommunitiesPortal().wait_until_appears() + except Exception as ex: + if attempts: + self.open_communities_portal(attempts - 1) + else: + raise ex def _get_community(self, name: str): community_names = [] diff --git a/test/e2e/gui/objects_map/names.py b/test/e2e/gui/objects_map/names.py index 546fb2f869..3cad008d7d 100644 --- a/test/e2e/gui/objects_map/names.py +++ b/test/e2e/gui/objects_map/names.py @@ -20,7 +20,8 @@ mainWindow_RighPanel = {"container": statusDesktop_mainWindow, "type": "ColumnLa # Navigation Panel mainWindow_StatusAppNavBar = {"container": statusDesktop_mainWindow, "type": "StatusAppNavBar", "unnamed": 1, "visible": True} messages_navbar_StatusNavBarTabButton = {"checkable": True, "container": mainWindow_StatusAppNavBar, "objectName": "Messages-navbar", "type": "StatusNavBarTabButton", "visible": True} -communities_Portal_navbar_StatusNavBarTabButton = {"checkable": True, "container": mainWindow_StatusAppNavBar, "objectName": "Communities Portal-navbar", "type": "StatusNavBarTabButton", "visible": True} +mainWindow_statusMainNavBarListView_ListView = {"container": statusDesktop_mainWindow, "objectName": "statusMainNavBarListView", "type": "ListView", "visible": True} +communities_Portal_navbar_StatusNavBarTabButton = {"checkable": True, "container": mainWindow_statusMainNavBarListView_ListView, "objectName": "Communities Portal-navbar", "type": "StatusNavBarTabButton", "visible": True} wallet_navbar_StatusNavBarTabButton = {"checkable": True, "container": mainWindow_StatusAppNavBar, "objectName": "Wallet-navbar", "type": "StatusNavBarTabButton", "visible": True} settings_navbar_StatusNavBarTabButton = {"checkable": True, "container": mainWindow_StatusAppNavBar, "objectName": "Settings-navbar", "type": "StatusNavBarTabButton", "visible": True} mainWindow_ProfileNavBarButton = {"container": statusDesktop_mainWindow, "objectName": "statusProfileNavBarTabButton", "type": "StatusNavBarTabButton", "visible": True}