chore: replace is_visible
This commit is contained in:
parent
4e13916d89
commit
81a7727f09
|
@ -1,5 +1,6 @@
|
||||||
import allure
|
import allure
|
||||||
|
|
||||||
|
import driver
|
||||||
from gui.components.community.create_community_popups import CreateCommunitiesBanner, CreateCommunityPopup
|
from gui.components.community.create_community_popups import CreateCommunitiesBanner, CreateCommunityPopup
|
||||||
from gui.elements.button import Button
|
from gui.elements.button import Button
|
||||||
from gui.elements.object import QObject
|
from gui.elements.object import QObject
|
||||||
|
@ -14,4 +15,9 @@ class CommunitiesPortal(QObject):
|
||||||
@allure.step('Open create community popup')
|
@allure.step('Open create community popup')
|
||||||
def open_create_community_popup(self) -> CreateCommunityPopup:
|
def open_create_community_popup(self) -> CreateCommunityPopup:
|
||||||
self._create_community_button.click()
|
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()
|
||||||
|
|
|
@ -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'):
|
with step('Verify user details are the same with user in first instance'):
|
||||||
online_identifier = main_window.left_panel.open_online_identifier()
|
online_identifier = main_window.left_panel.open_online_identifier()
|
||||||
assert online_identifier.get_user_name == user.name, \
|
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')
|
@allure.testcase('https://ethstatus.testrail.net/index.php?/cases/view/703631', 'Wrong sync code')
|
||||||
|
|
Loading…
Reference in New Issue