From 2ed62e53eb58f7838174a72129d8923f3091ad27 Mon Sep 17 00:00:00 2001 From: Churikova Tetiana Date: Tue, 12 Nov 2019 11:21:55 +0100 Subject: [PATCH] added waits Signed-off-by: Churikova Tetiana --- test/appium/tests/atomic/account_management/test_profile.py | 3 ++- .../tests/atomic/transactions/test_daaps_transactions.py | 2 +- 2 files changed, 3 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 706d838a6f..7d090b563e 100644 --- a/test/appium/tests/atomic/account_management/test_profile.py +++ b/test/appium/tests/atomic/account_management/test_profile.py @@ -840,6 +840,7 @@ class TestProfileMultipleDevice(MultipleDeviceTestCase): @marks.testrail_id(6226) @marks.critical + # TODO: should be completed after https://github.com/status-im/status-react/issues/8854 is ready def test_ens_in_public_chat(self): self.create_drivers(2) device_1, device_2 = self.drivers[0], self.drivers[1] @@ -881,7 +882,7 @@ class TestProfileMultipleDevice(MultipleDeviceTestCase): home_1.get_chat_with_user('#' + chat_name).click() message_text_2 = 'message test text 1' chat_1.send_message(message_text_2) - if chat_2.chat_element_by_text(message_text_2).username.text.lower() != '@' + user_1['ens']: + if not chat_2.wait_for_element_starts_with_text('@' + user_1['ens']): self.errors.append('ENS username is not shown in public chat') self.errors.verify_no_errors() diff --git a/test/appium/tests/atomic/transactions/test_daaps_transactions.py b/test/appium/tests/atomic/transactions/test_daaps_transactions.py index 8134f0be2b..2d0e984c48 100644 --- a/test/appium/tests/atomic/transactions/test_daaps_transactions.py +++ b/test/appium/tests/atomic/transactions/test_daaps_transactions.py @@ -58,7 +58,7 @@ class TestTransactionDApp(SingleDeviceTestCase): send_transaction_view.sign_transaction() for text in 'Contract deployed at: ', 'Call contract get function', \ 'Call contract set function', 'Call function 2 times in a row': - if not status_test_dapp.element_by_text(text).is_element_displayed(120): + if not status_test_dapp.element_by_text(text).is_element_displayed(180): self.driver.fail('Contract was not created') @marks.testrail_id(5784)