From 81a7727f09d087e04f7e06ad3628931dccbcc523 Mon Sep 17 00:00:00 2001 From: Anastasiya Semenkevich Date: Sat, 23 Dec 2023 10:27:34 +0300 Subject: [PATCH] chore: replace is_visible --- test/e2e/gui/screens/community_portal.py | 8 +++++++- test/e2e/tests/onboarding/test_onboarding_syncing.py | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/test/e2e/gui/screens/community_portal.py b/test/e2e/gui/screens/community_portal.py index 78dca21acd..21b4ef74a4 100644 --- a/test/e2e/gui/screens/community_portal.py +++ b/test/e2e/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/test/e2e/tests/onboarding/test_onboarding_syncing.py b/test/e2e/tests/onboarding/test_onboarding_syncing.py index 17220477d3..09f3871618 100644 --- a/test/e2e/tests/onboarding/test_onboarding_syncing.py +++ b/test/e2e/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')