e2e: fixed system back button click
This commit is contained in:
parent
a94797710a
commit
b565cbf85e
|
@ -52,11 +52,11 @@ class TestOnboardingOneDeviceMerged(MultipleSharedDeviceTestCase):
|
||||||
self.profile.share_via_messenger()
|
self.profile.share_via_messenger()
|
||||||
if not self.profile.element_by_text_part(public_key).is_element_present():
|
if not self.profile.element_by_text_part(public_key).is_element_present():
|
||||||
self.errors.append("Can't share public key")
|
self.errors.append("Can't share public key")
|
||||||
self.profile.click_system_back_button()
|
self.profile.click_system_back_button_until_element_is_shown()
|
||||||
|
|
||||||
self.home.just_fyi("Check that can paste contact code in chat message input")
|
self.home.just_fyi("Check that can paste contact code in chat message input")
|
||||||
home = self.profile.home_button.click()
|
self.profile.home_button.double_click()
|
||||||
chat = home.add_contact(transaction_senders['M']['public_key'])
|
chat = self.home.add_contact(transaction_senders['M']['public_key'])
|
||||||
chat.chat_message_input.click()
|
chat.chat_message_input.click()
|
||||||
chat.paste_text()
|
chat.paste_text()
|
||||||
input_text = chat.chat_message_input.text
|
input_text = chat.chat_message_input.text
|
||||||
|
@ -80,7 +80,7 @@ class TestOnboardingOneDeviceMerged(MultipleSharedDeviceTestCase):
|
||||||
wallet.share_via_messenger()
|
wallet.share_via_messenger()
|
||||||
if not wallet.element_by_text_part(address).is_element_present():
|
if not wallet.element_by_text_part(address).is_element_present():
|
||||||
self.errors.append("Can't share address")
|
self.errors.append("Can't share address")
|
||||||
wallet.click_system_back_button()
|
wallet.click_system_back_button_until_element_is_shown()
|
||||||
|
|
||||||
self.home.just_fyi("Check that can paste wallet address in chat message input")
|
self.home.just_fyi("Check that can paste wallet address in chat message input")
|
||||||
wallet.home_button.click()
|
wallet.home_button.click()
|
||||||
|
|
|
@ -96,7 +96,7 @@ class TestDeeplinkChatProfileOneDevice(MultipleSharedDeviceTestCase):
|
||||||
'https://join.status.im/u/%s' % dummy_user["public_key"]).is_element_present():
|
'https://join.status.im/u/%s' % dummy_user["public_key"]).is_element_present():
|
||||||
self.errors.append("Can't share public key of contact")
|
self.errors.append("Can't share public key of contact")
|
||||||
for _ in range(2):
|
for _ in range(2):
|
||||||
chat.click_system_back_button()
|
chat.click_system_back_button_until_element_is_shown()
|
||||||
|
|
||||||
@marks.testrail_id(702252)
|
@marks.testrail_id(702252)
|
||||||
def test_share_user_profile_url_public_chat(self):
|
def test_share_user_profile_url_public_chat(self):
|
||||||
|
@ -112,7 +112,7 @@ class TestDeeplinkChatProfileOneDevice(MultipleSharedDeviceTestCase):
|
||||||
'https://join.status.im/%s' % self.public_chat_name).is_element_present():
|
'https://join.status.im/%s' % self.public_chat_name).is_element_present():
|
||||||
self.errors.append("Can't share link to public chat")
|
self.errors.append("Can't share link to public chat")
|
||||||
for _ in range(2):
|
for _ in range(2):
|
||||||
self.public_chat.click_system_back_button()
|
self.public_chat.click_system_back_button_until_element_is_shown()
|
||||||
self.public_chat.get_back_to_home_view()
|
self.public_chat.get_back_to_home_view()
|
||||||
|
|
||||||
@marks.testrail_id(702251)
|
@marks.testrail_id(702251)
|
||||||
|
@ -131,7 +131,7 @@ class TestDeeplinkChatProfileOneDevice(MultipleSharedDeviceTestCase):
|
||||||
browser.element_by_text_part(expeceted_text_2).is_element_present()):
|
browser.element_by_text_part(expeceted_text_2).is_element_present()):
|
||||||
self.errors.append("Can't share link to URL")
|
self.errors.append("Can't share link to URL")
|
||||||
|
|
||||||
browser.click_system_back_button(1)
|
browser.click_system_back_button_until_element_is_shown()
|
||||||
|
|
||||||
self.errors.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue