chore: edits for communities portal method
This commit is contained in:
parent
b8f832dc1d
commit
054048531f
|
@ -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()
|
||||
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 = []
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue