diff --git a/gui/screens/community_portal.py b/gui/screens/community_portal.py index 78dca21..21b4ef7 100644 --- a/gui/screens/community_portal.py +++ b/gui/screens/community_portal.py @@ -1,5 +1,6 @@ import allure +import driver from gui.components.community.create_community_popups import CreateCommunitiesBanner, CreateCommunityPopup from gui.elements.button import Button from gui.elements.object import QObject @@ -14,4 +15,9 @@ class CommunitiesPortal(QObject): @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() + try: + assert driver.waitForObjectExists(CreateCommunitiesBanner().real_name, 5000), \ + f'Create community banner is not present within 5 seconds' + except (Exception, AssertionError) as ex: + raise ex + return CreateCommunitiesBanner().open_create_community_popup() diff --git a/tests/onboarding/test_onboarding_syncing.py b/tests/onboarding/test_onboarding_syncing.py index 1722047..09f3871 100644 --- a/tests/onboarding/test_onboarding_syncing.py +++ b/tests/onboarding/test_onboarding_syncing.py @@ -96,7 +96,7 @@ def test_sync_device_during_onboarding(multiple_instance, user_data): with step('Verify user details are the same with user in first instance'): online_identifier = main_window.left_panel.open_online_identifier() assert online_identifier.get_user_name == user.name, \ - f'Name in online identifier and display do not match' + f'Name in online identifier and display name do not match' @allure.testcase('https://ethstatus.testrail.net/index.php?/cases/view/703631', 'Wrong sync code')