From 34b356866b4f253adb132c69e45c76ff83226448 Mon Sep 17 00:00:00 2001 From: Churikova Tetiana Date: Fri, 29 Nov 2019 11:27:57 +0100 Subject: [PATCH] fixed several e2e Signed-off-by: Churikova Tetiana --- .../tests/atomic/account_management/test_create_account.py | 3 ++- test/appium/tests/atomic/account_management/test_profile.py | 2 +- test/appium/views/base_view.py | 2 ++ translations/en.json | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/test/appium/tests/atomic/account_management/test_create_account.py b/test/appium/tests/atomic/account_management/test_create_account.py index 1906338296..a5f7f3b997 100644 --- a/test/appium/tests/atomic/account_management/test_create_account.py +++ b/test/appium/tests/atomic/account_management/test_create_account.py @@ -75,7 +75,8 @@ class TestCreateAccount(SingleDeviceTestCase): sign_in.next_button.click() sign_in.lets_go_button.click() home_view = sign_in.get_home_view() - texts = ['Chat and transact privately with your friends.','Follow your interests in one of the many Public Chats.'] + texts = ['Chat and transact privately with your friends.', + 'Follow your interests in one of the many public chats.'] for text in texts: if not home_view.element_by_text(text).is_element_displayed(): self.errors.append("'%s' text is not shown" % text) diff --git a/test/appium/tests/atomic/account_management/test_profile.py b/test/appium/tests/atomic/account_management/test_profile.py index 2c82b9413e..2b8ea8b781 100644 --- a/test/appium/tests/atomic/account_management/test_profile.py +++ b/test/appium/tests/atomic/account_management/test_profile.py @@ -497,7 +497,7 @@ class TestProfileSingleDevice(SingleDeviceTestCase): node_version = profile_view.node_version_text.text if not re.search("\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("StatusIM\/v\d{1}[.]\d{1,2}[.]\d{1,2}-beta.\d\/android-\d{3}\/go\d{1}[.]\d{1,2}[.]\d{1,2}", node_version): + if not re.search("StatusIM\/v.*\/android-\d{3}\/go\d{1}[.]\d{1,2}[.]\d{1,2}", 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() diff --git a/test/appium/views/base_view.py b/test/appium/views/base_view.py index e30942fae6..613a518c77 100644 --- a/test/appium/views/base_view.py +++ b/test/appium/views/base_view.py @@ -284,6 +284,8 @@ class OpenInStatusButton(BaseButton): def click(self): self.wait_for_visibility_of_element() + # using sleep is wrong, but implicit wait for element can't help in particular case + time.sleep(3) self.swipe_to_web_element() self.wait_for_element().click() diff --git a/translations/en.json b/translations/en.json index 127fc68ab9..b8d6e2c267 100644 --- a/translations/en.json +++ b/translations/en.json @@ -463,7 +463,7 @@ "finishing-card-setup-steps": "> Loading keys to the card\n> Generating multiaccount", "fleet": "Fleet", "fleet-settings": "Fleet settings", - "follow-your-interests": "Follow your interests in one of the many Public Chat.", + "follow-your-interests": "Follow your interests in one of the many public chats.", "free": "↓ Free", "from": "From", "gas-limit": "Gas limit",