chore: edits for communities portal method

This commit is contained in:
Valentina Novgorodtceva 2024-04-24 09:49:03 +02:00 committed by Anastasiya
parent b8f832dc1d
commit 054048531f
2 changed files with 10 additions and 3 deletions

View File

@ -99,9 +99,15 @@ class LeftPanel(QObject):
return self.user_badge_color == '#4ebc60' return self.user_badge_color == '#4ebc60'
@allure.step('Open community portal') @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() 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): def _get_community(self, name: str):
community_names = [] community_names = []

View File

@ -20,7 +20,8 @@ mainWindow_RighPanel = {"container": statusDesktop_mainWindow, "type": "ColumnLa
# Navigation Panel # Navigation Panel
mainWindow_StatusAppNavBar = {"container": statusDesktop_mainWindow, "type": "StatusAppNavBar", "unnamed": 1, "visible": True} 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} 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} 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} 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} mainWindow_ProfileNavBarButton = {"container": statusDesktop_mainWindow, "objectName": "statusProfileNavBarTabButton", "type": "StatusNavBarTabButton", "visible": True}