This commit is contained in:
Valentina Novgorodtceva 2024-05-03 15:09:40 +02:00
parent d58a819992
commit 4a0aa21be7
3 changed files with 13 additions and 3 deletions

View File

@ -21,6 +21,17 @@ from gui.screens.community import CommunityScreen
LOG = logging.getLogger(__name__)
class CreateCommunitiesBanner(BasePopup):
def __init__(self):
super().__init__()
self._crete_community_button = Button(names.create_new_StatusButton)
def open_create_community_popup(self) -> 'CreateCommunityPopup':
self._crete_community_button.click()
return CreateCommunityPopup().wait_until_appears()
class CreateCommunityPopup(BasePopup):
def __init__(self):

View File

@ -1,6 +1,6 @@
import allure
from gui.components.community.create_community_popups import CreateCommunityPopup
from gui.components.community.create_community_popups import CreateCommunityPopup, CreateCommunitiesBanner
from gui.elements.button import Button
from gui.elements.object import QObject
from gui.objects_map import communities_names
@ -15,4 +15,4 @@ class CommunitiesPortal(QObject):
@allure.step('Open create community popup')
def open_create_community_popup(self) -> CreateCommunityPopup:
self._create_community_button.click()
return CreateCommunityPopup().wait_until_appears()
return CreateCommunitiesBanner().wait_until_appears()

View File

@ -90,7 +90,6 @@ def test_create_community(user_account, main_screen: MainWindow, params):
'outro': 'Updated Outro'
}
])
@pytest.mark.skip(reason="https://github.com/status-im/status-desktop/issues/13783")
def test_edit_community(main_screen: MainWindow, params):
with step('Enable creation of community option'):
settings = main_screen.left_panel.open_settings()