status-desktop/test/e2e/gui/screens/community_portal.py
Vladimir Druzhinin 0c63fc6f93 Ci/74 jenkins file (#142)
* OS native dialog replaced on Qt dialog

* Starting fluxbox added to make File Dialog visible
2023-10-06 10:33:42 +02:00

18 lines
698 B
Python

import allure
from gui.components.community.create_community_popups import CreateCommunitiesBanner, CreateCommunityPopup
from gui.elements.button import Button
from gui.elements.object import QObject
class CommunitiesPortal(QObject):
def __init__(self):
super().__init__('mainWindow_communitiesPortalLayout_CommunitiesPortalLayout')
self._create_community_button = Button('mainWindow_Create_New_Community_StatusButton')
@allure.step('Open create community popup')
def open_create_community_popup(self) -> CreateCommunityPopup:
self._create_community_button.click()
return CreateCommunitiesBanner().wait_until_appears().open_create_community_popup()