chore: replace is_visible

This commit is contained in:
Anastasiya Semenkevich 2023-12-23 10:27:34 +03:00 committed by Anastasiya
parent 4e13916d89
commit 81a7727f09
2 changed files with 8 additions and 2 deletions

View File

@ -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()

View File

@ -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')