e2e: fixes
This commit is contained in:
parent
cdcaa68395
commit
976f58606c
|
@ -129,6 +129,7 @@ class TestWalletManagementDeviceMerged(MultipleSharedDeviceTestCase):
|
||||||
|
|
||||||
self.sign_in.just_fyi("Check that 0 asset is not disappearing after relogin")
|
self.sign_in.just_fyi("Check that 0 asset is not disappearing after relogin")
|
||||||
self.wallet.reopen_app()
|
self.wallet.reopen_app()
|
||||||
|
self.home.continue_syncing_button.click_if_shown(5)
|
||||||
self.sign_in.wallet_button.click()
|
self.sign_in.wallet_button.click()
|
||||||
self.wallet.asset_by_name(asset).scroll_to_element()
|
self.wallet.asset_by_name(asset).scroll_to_element()
|
||||||
|
|
||||||
|
|
|
@ -906,10 +906,9 @@ class TestChatManagement(SingleDeviceTestCase):
|
||||||
profile.close_button.click()
|
profile.close_button.click()
|
||||||
if not profile.element_by_text(h_node).is_element_displayed():
|
if not profile.element_by_text(h_node).is_element_displayed():
|
||||||
self.errors.append('"%s" history node is not pinned' % h_node)
|
self.errors.append('"%s" history node is not pinned' % h_node)
|
||||||
profile.home_button.click()
|
|
||||||
|
|
||||||
profile.just_fyi('Relogin and check that settings are preserved')
|
profile.just_fyi('Relogin and check that settings are preserved')
|
||||||
home.relogin()
|
home.reopen_app()
|
||||||
home.profile_button.click()
|
home.profile_button.click()
|
||||||
profile.sync_settings_button.click()
|
profile.sync_settings_button.click()
|
||||||
if not profile.element_by_text(h_node).is_element_displayed():
|
if not profile.element_by_text(h_node).is_element_displayed():
|
||||||
|
|
|
@ -538,16 +538,14 @@ class BaseView(object):
|
||||||
|
|
||||||
def get_back_to_home_view(self, times_to_click_on_back_btn=3):
|
def get_back_to_home_view(self, times_to_click_on_back_btn=3):
|
||||||
counter = 0
|
counter = 0
|
||||||
while self.back_button.is_element_displayed(2) or self.close_button.is_element_displayed(2) or self.navigate_up_button.is_element_displayed(2):
|
while self.back_button.is_element_displayed(2) or self.navigate_up_button.is_element_displayed(2):
|
||||||
try:
|
try:
|
||||||
if counter >= times_to_click_on_back_btn:
|
if counter >= times_to_click_on_back_btn:
|
||||||
break
|
break
|
||||||
if self.back_button.is_element_displayed(2):
|
if self.back_button.is_element_displayed(2):
|
||||||
self.back_button.click_until_presence_of_element(self.home_button)
|
self.back_button.click_until_absense_of_element(self.back_button)
|
||||||
elif self.close_button.is_element_displayed(2):
|
|
||||||
self.close_button.click_until_presence_of_element(self.home_button)
|
|
||||||
else:
|
else:
|
||||||
self.navigate_up_button.click_until_presence_of_element(self.home_button)
|
self.navigate_up_button.click_until_absense_of_element(self.navigate_up_button)
|
||||||
counter += 1
|
counter += 1
|
||||||
except (NoSuchElementException, TimeoutException):
|
except (NoSuchElementException, TimeoutException):
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue