2023-08-29 14:43:00 +00:00
|
|
|
import allure
|
|
|
|
|
2023-09-11 18:24:13 +00:00
|
|
|
from gui.components.community.create_community_popups import CreateCommunitiesBanner, CreateCommunityPopup
|
2023-10-06 08:33:42 +00:00
|
|
|
from gui.elements.button import Button
|
|
|
|
from gui.elements.object import QObject
|
2023-08-29 14:43:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
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')
|
2023-09-11 18:24:13 +00:00
|
|
|
def open_create_community_popup(self) -> CreateCommunityPopup:
|
2023-08-29 14:43:00 +00:00
|
|
|
self._create_community_button.click()
|
|
|
|
return CreateCommunitiesBanner().wait_until_appears().open_create_community_popup()
|