diff --git a/test/appium/tests/atomic/chats/test_one_to_one.py b/test/appium/tests/atomic/chats/test_one_to_one.py index 539264b57d..fcf1438995 100644 --- a/test/appium/tests/atomic/chats/test_one_to_one.py +++ b/test/appium/tests/atomic/chats/test_one_to_one.py @@ -164,7 +164,7 @@ class TestMessagesOneToOneChatMultiple(MultipleDeviceTestCase): device_2_chat = chat_element.click() if not device_2_chat.chat_element_by_text(message).is_element_displayed(): self.errors.append("Message with text '%s' was not received" % message) - device_2_chat.reconnect() + device_2_chat.connection_status.wait_for_invisibility_of_element(60) device_2_chat.add_to_contacts.click() device_2_chat.get_back_to_home_view() @@ -234,14 +234,14 @@ class TestMessagesOneToOneChatMultiple(MultipleDeviceTestCase): sign_in.driver.set_network_connection(1) # airplane mode - if home_view.connection_status.text != 'Offline': - self.errors.append('Offline status is not shown in home screen') - chat = home_view.add_contact(transaction_senders['C']['public_key']) if chat.connection_status.text != 'Offline': self.errors.append('Offline status is not shown in 1-1 chat') chat.get_back_to_home_view() + if home_view.connection_status.text != 'Offline': + self.errors.append('Offline status is not shown in home screen') + public_chat = home_view.join_public_chat(home_view.get_public_chat_name()) if public_chat.connection_status.text != 'Offline': self.errors.append('Offline status is not shown in a public chat') diff --git a/test/appium/views/base_view.py b/test/appium/views/base_view.py index 86dc4a5870..822a630ac2 100644 --- a/test/appium/views/base_view.py +++ b/test/appium/views/base_view.py @@ -275,8 +275,6 @@ class BaseView(object): self.apps_button = AppsButton(self.driver) self.status_app_icon = StatusAppIcon(self.driver) - self.test_fairy_warning = TestFairyWarning(self.driver) - self.wallet_modal_button = WalletModalButton(self.driver) self.element_types = { diff --git a/test/appium/views/profile_view.py b/test/appium/views/profile_view.py index 7e83c03272..6286289c48 100644 --- a/test/appium/views/profile_view.py +++ b/test/appium/views/profile_view.py @@ -396,6 +396,10 @@ class AboutButton(BaseButton): from views.about_view import AboutView return AboutView(self.driver) + def click(self): + self.scroll_to_element().click() + return self.navigate() + class ProfileView(BaseView): diff --git a/test/appium/views/sign_in_view.py b/test/appium/views/sign_in_view.py index b50a0ebbb7..54256f50b0 100644 --- a/test/appium/views/sign_in_view.py +++ b/test/appium/views/sign_in_view.py @@ -136,7 +136,7 @@ class SignInView(BaseView): recover_access_view.send_as_keyevent(passphrase) recover_access_view.password_input.click() recover_access_view.send_as_keyevent(password) - recover_access_view.sign_in_button.click() + recover_access_view.sign_in_button.click_until_presence_of_element(recover_access_view.home_button) return self.get_home_view() def open_status_test_dapp(self): diff --git a/test/appium/views/web_views/status_test_dapp.py b/test/appium/views/web_views/status_test_dapp.py index 4d4289fba0..2ad0445d08 100644 --- a/test/appium/views/web_views/status_test_dapp.py +++ b/test/appium/views/web_views/status_test_dapp.py @@ -21,6 +21,9 @@ class AssetsButton(BaseButton): from views.send_transaction_view import SendTransactionView return SendTransactionView(self.driver) + def click(self): + self.click_until_presence_of_element(self.RequestSTTButton(self.driver)) + class TransactionsButton(BaseButton):