diff --git a/test/appium/requirements.txt b/test/appium/requirements.txt index d5e8c309cd..73bfafdf62 100644 --- a/test/appium/requirements.txt +++ b/test/appium/requirements.txt @@ -24,7 +24,7 @@ namedlist==1.8 numpy==1.19.4 pbkdf2==1.3 Pillow==8.1.0 -py==1.9.0 +py==1.10.0 py-ecc==5.1.0 pycryptodome==3.9.9 pyethash==0.1.27 diff --git a/test/appium/tests/atomic/account_management/test_wallet_management.py b/test/appium/tests/atomic/account_management/test_wallet_management.py index 9a69d4e770..b4ee8769ef 100644 --- a/test/appium/tests/atomic/account_management/test_wallet_management.py +++ b/test/appium/tests/atomic/account_management/test_wallet_management.py @@ -106,7 +106,8 @@ class TestWalletManagement(SingleDeviceTestCase): wallet.just_fyi('Check "Open in OpenSea"') wallet.element_by_translation_id("check-on-opensea").click() - wallet.element_by_text('Sign In').click() + + wallet.element_by_text('Sign In').wait_and_click(60) if not wallet.allow_button.is_element_displayed(40): self.errors.append('Can not sign in in OpenSea dapp') self.errors.verify_no_errors() diff --git a/test/appium/tests/atomic/chats/test_commands.py b/test/appium/tests/atomic/chats/test_commands.py index 9c9a6619c4..451e5b0a71 100644 --- a/test/appium/tests/atomic/chats/test_commands.py +++ b/test/appium/tests/atomic/chats/test_commands.py @@ -87,8 +87,10 @@ class TestCommandsMultipleDevices(MultipleDeviceTestCase): home_1.just_fyi("Check 'Confirmed' state for sender and receiver(use pull-to-refresh to update history)") chat_2.status_in_background_button.click() chat_2.wallet_button.click() + wallet_2.wait_balance_is_changed() wallet_2.find_transaction_in_history(amount=amount) - wallet_2.home_button.click(desired_view="chat") + wallet_2.home_button.click() + home_2.get_chat(sender['username']).click() [message.transaction_status.wait_for_element_text(message.confirmed, 60) for message in (sender_message, receiver_message)] diff --git a/test/appium/tests/atomic/chats/test_group_chat.py b/test/appium/tests/atomic/chats/test_group_chat.py index a2065ff2e2..084eefb34a 100644 --- a/test/appium/tests/atomic/chats/test_group_chat.py +++ b/test/appium/tests/atomic/chats/test_group_chat.py @@ -510,7 +510,7 @@ class TestGroupChatMultipleDevice(MultipleDeviceTestCase): device_1.send_message_button.click() device_1_chat.chat_message_input.click() for chat in device_1_chat, device_2_chat, device_3_chat: - if not chat.play_pause_audio_message_button.is_element_displayed(): + if not chat.play_pause_audio_message_button.is_element_displayed(30): self.errors.append('Audio message is not shown in chat after sending!') device_1.just_fyi('Send sticker to group chat and verify it on all devices') @@ -524,7 +524,7 @@ class TestGroupChatMultipleDevice(MultipleDeviceTestCase): sleep(2) device_1_chat.swipe_left() device_1_chat.sticker_icon.click() - if not device_1_chat.sticker_message.is_element_displayed(): + if not device_1_chat.sticker_message.is_element_displayed(30): self.errors.append('Sticker was not sent') self.errors.verify_no_errors() diff --git a/test/appium/views/base_element.py b/test/appium/views/base_element.py index 92449df368..ad1e9549d3 100644 --- a/test/appium/views/base_element.py +++ b/test/appium/views/base_element.py @@ -343,7 +343,7 @@ class SilentButton(Button): return self.driver.find_element(self.by, self.locator) except NoSuchElementException: raise NoSuchElementException( - "Device %s: '%s' is not found on the screen" % (self.driver.number, self.name)) from None + "Device %s: '%s' by %s:'%s' not found on the screen" % (self.driver.number, self.name, self.by, self.locator)) from None except Exception as exception: if 'Internal Server Error' in str(exception): continue diff --git a/test/appium/views/home_view.py b/test/appium/views/home_view.py index 8ed45abda5..8352f09a8d 100644 --- a/test/appium/views/home_view.py +++ b/test/appium/views/home_view.py @@ -121,7 +121,6 @@ class HomeView(BaseView): if add_in_contacts: one_to_one_chat.add_to_contacts.click() if nickname: - self.driver.info("**Setting nickname '%s'**" % nickname) one_to_one_chat.chat_options.click() one_to_one_chat.view_profile_button.click() one_to_one_chat.set_nickname(nickname)