Fix e2e tests

Signed-off-by: Serhy <sergii@status.im>
This commit is contained in:
Serhy 2020-04-29 17:42:54 +03:00
parent 5dc6b77ee8
commit e16ed6d802
No known key found for this signature in database
GPG Key ID: 5D7C4B9E2B6F500B
2 changed files with 2 additions and 2 deletions

View File

@ -524,7 +524,7 @@ class TestProfileSingleDevice(SingleDeviceTestCase):
node_version = profile_view.node_version_text.text
if not re.search(r'\d{1}[.]\d{1,2}[.]\d{1,2}\s[(]\d*[)]', app_version):
self.errors.append("App version %s didn't match expected format" % app_version)
if not re.search(r'StatusIM\/v.*\/android-\d{3}\/go\d{1}[.]\d{1,2}[.]\d{1,2}', node_version):
if not re.search(r'StatusIM\/v.*\/android-\d{3}\/go\d{1}[.]\d{1,}', node_version):
self.errors.append("Node version %s didn't match expected format" % node_version)
profile_view.app_version_text.click()
profile_view.back_button.click()

View File

@ -117,7 +117,7 @@ class TestBrowsing(SingleDeviceTestCase):
for entry in ('google.com', 'status.im'):
browsing_view = dapp_view.open_url(entry)
browsing_view.cross_icon.click()
dapp_view.remove_browser_entry_long_press('Status - Private', clear_all=True)
dapp_view.remove_browser_entry_long_press('status', clear_all=True)
home_view.relogin()
home_view.dapp_tab_button.click()
if not dapp_view.element_by_text('Browser history will appear here').is_element_displayed():