From a98264014ff027fd9f0c5a8af7ce14a1d2fb03b5 Mon Sep 17 00:00:00 2001 From: Serhy Date: Fri, 1 Mar 2019 18:00:49 +0200 Subject: [PATCH] Fix switch to home view from Wallet Signed-off-by: Serhy --- test/appium/tests/atomic/account_management/test_profile.py | 4 +++- test/appium/views/base_view.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/test/appium/tests/atomic/account_management/test_profile.py b/test/appium/tests/atomic/account_management/test_profile.py index f28dc5ab81..b8c38fd20e 100644 --- a/test/appium/tests/atomic/account_management/test_profile.py +++ b/test/appium/tests/atomic/account_management/test_profile.py @@ -212,7 +212,9 @@ class TestProfileSingleDevice(SingleDeviceTestCase): chat_view.chat_options.click_until_presence_of_element(chat_view.view_profile_button) chat_view.view_profile_button.click() for text in basic_user['username'], 'In contacts', 'Send transaction', 'Send message', 'Contact code': - chat_view.find_full_text(text) + if not chat_view.element_by_text(text).scroll_to_element(): + self.errors.append('%s is not visible' % text) + self.verify_no_errors() @marks.testrail_id(5468) @marks.medium diff --git a/test/appium/views/base_view.py b/test/appium/views/base_view.py index f82b313945..fb9ac492bc 100644 --- a/test/appium/views/base_view.py +++ b/test/appium/views/base_view.py @@ -476,7 +476,7 @@ class BaseView(object): while not PlusButton(self.driver).is_element_displayed(2): try: if counter >= 5: - return + break self.back_button.click() except (NoSuchElementException, TimeoutException): counter += 1