Update e2e to fix false fails in deep link test

Signed-off-by: Serhy <sergii@status.im>
This commit is contained in:
Serhy 2020-05-06 14:05:54 +03:00
parent 1bf68094e3
commit f334f59223
No known key found for this signature in database
GPG Key ID: 5D7C4B9E2B6F500B
2 changed files with 5 additions and 6 deletions

View File

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

View File

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