Update e2e to fix false fails in deep link test
Signed-off-by: Serhy <sergii@status.im>
This commit is contained in:
parent
1bf68094e3
commit
f334f59223
|
@ -15,7 +15,7 @@ class TestDeepLinks(SingleDeviceTestCase):
|
|||
sign_in_view.create_user()
|
||||
self.driver.close_app()
|
||||
chat_name = sign_in_view.get_random_chat_name()
|
||||
deep_link = 'https://join.status.im/%s' % chat_name
|
||||
deep_link = 'status-im://%s' % chat_name
|
||||
sign_in_view.open_weblink_and_login(deep_link)
|
||||
chat_view = sign_in_view.get_chat_view()
|
||||
try:
|
||||
|
@ -32,7 +32,7 @@ class TestDeepLinks(SingleDeviceTestCase):
|
|||
profile.switch_network('Mainnet with upstream RPC')
|
||||
for user_ident in ens_user['ens'], ens_user['ens_another_domain'], ens_user['public_key'],:
|
||||
self.driver.close_app()
|
||||
deep_link = 'https://join.status.im/u/%s' % user_ident
|
||||
deep_link = 'status-im://u/%s' % user_ident
|
||||
sign_in_view.open_weblink_and_login(deep_link)
|
||||
chat_view = sign_in_view.get_chat_view()
|
||||
for text in ens_user['username'], 'Add to contacts':
|
||||
|
@ -46,7 +46,7 @@ class TestDeepLinks(SingleDeviceTestCase):
|
|||
sign_in_view.create_user()
|
||||
self.driver.close_app()
|
||||
dapp_name = test_dapp_url
|
||||
dapp_deep_link = 'https://join.status.im/b/%s' % dapp_name
|
||||
dapp_deep_link = 'status-im://b/%s' % dapp_name
|
||||
sign_in_view.open_weblink_and_login(dapp_deep_link)
|
||||
web_view = sign_in_view.get_chat_view()
|
||||
try:
|
||||
|
@ -61,7 +61,7 @@ class TestDeepLinks(SingleDeviceTestCase):
|
|||
sign_in_view = SignInView(self.driver)
|
||||
sign_in_view.recover_access(passphrase=basic_user['passphrase'])
|
||||
self.driver.close_app()
|
||||
deep_link = 'https://join.status.im/u/%s' % basic_user['public_key']
|
||||
deep_link = 'status-im://u/%s' % basic_user['public_key']
|
||||
sign_in_view.open_weblink_and_login(deep_link)
|
||||
profile_view = sign_in_view.get_profile_view()
|
||||
profile_view.privacy_and_security_button.wait_for_element()
|
||||
|
@ -76,7 +76,7 @@ class TestDeepLinks(SingleDeviceTestCase):
|
|||
sign_in_view = SignInView(self.driver)
|
||||
sign_in_view.create_user()
|
||||
self.driver.close_app()
|
||||
deep_link = 'https://join.status.im/u/%s' % basic_user['public_key'][:-10]
|
||||
deep_link = 'status-im://u/%s' % basic_user['public_key'][:-10]
|
||||
sign_in_view.open_weblink_and_login(deep_link)
|
||||
home_view = sign_in_view.get_home_view()
|
||||
home_view.plus_button.click_until_presence_of_element(home_view.start_new_chat_button)
|
||||
|
|
|
@ -690,7 +690,6 @@ class BaseView(object):
|
|||
|
||||
def open_universal_web_link(self, deep_link):
|
||||
start_web_browser(self.driver)
|
||||
self.element_by_text_part("Search").wait_for_element()
|
||||
self.driver.get(deep_link)
|
||||
|
||||
def upgrade_app(self):
|
||||
|
|
Loading…
Reference in New Issue