From dd67533ecd46a85d4233158bcd28f5388cbfd392 Mon Sep 17 00:00:00 2001 From: Churikova Tetiana Date: Thu, 6 Aug 2020 12:43:42 +0200 Subject: [PATCH] regression e2e fix Signed-off-by: Churikova Tetiana --- .../tests/atomic/account_management/test_profile.py | 10 +++++++--- .../account_management/test_wallet_management.py | 4 +--- test/appium/tests/atomic/transactions/test_wallet.py | 4 +--- test/appium/views/profile_view.py | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/test/appium/tests/atomic/account_management/test_profile.py b/test/appium/tests/atomic/account_management/test_profile.py index b3321346e5..d035243b79 100644 --- a/test/appium/tests/atomic/account_management/test_profile.py +++ b/test/appium/tests/atomic/account_management/test_profile.py @@ -316,13 +316,17 @@ class TestProfileSingleDevice(SingleDeviceTestCase): sign_in_view = SignInView(self.driver) home = sign_in_view.create_user() home.invite_friends_button.click() + # TODO: referrals temporal flow + home.element_by_text('Invite').click() home.share_via_messenger() - home.find_text_part("Get Status at http://status.im") - home.click_system_back_button() + home.find_text_part("Hey join me on Status: https://join.status.im/u/0x") + home.click_system_back_button(2) home.plus_button.click() home.chats_menu_invite_friends_button.click() + # TODO: referrals temporal flow + home.element_by_text('Invite').click() home.share_via_messenger() - home.find_text_part("Get Status at http://status.im") + home.find_text_part("Hey join me on Status: https://join.status.im/u/0x") @marks.testrail_id(6312) @marks.medium 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 4a6d01ec02..4f28d7512a 100644 --- a/test/appium/tests/atomic/account_management/test_wallet_management.py +++ b/test/appium/tests/atomic/account_management/test_wallet_management.py @@ -329,9 +329,7 @@ class TestWalletManagement(SingleDeviceTestCase): if account_button.is_element_displayed(): self.driver.fail('Account was not deleted') for asset in ('ETH', 'ADI', 'STT'): - balance = wallet_view.get_asset_amount_by_name(asset) - if balance != 0: - self.errors.append("Balance for %s is not updated after deleting watch-only account" % asset) + wallet_view.wait_balance_is_equal_expected_amount(asset, 0) self.errors.verify_no_errors() diff --git a/test/appium/tests/atomic/transactions/test_wallet.py b/test/appium/tests/atomic/transactions/test_wallet.py index 7906757819..8d7885544e 100644 --- a/test/appium/tests/atomic/transactions/test_wallet.py +++ b/test/appium/tests/atomic/transactions/test_wallet.py @@ -136,9 +136,7 @@ class TestTransactionWalletSingleDevice(SingleDeviceTestCase): send_transaction.done_button.click_until_presence_of_element(send_transaction.element_by_text_part('Invalid address')) send_transaction.ok_button.click() send_transaction.enter_recipient_address_input.set_value('0xDE709F2102306220921060314715629080E2fB77') - send_transaction.done_button.click() - if not send_transaction.element_by_text_part('Invalid address').is_element_displayed(): - self.errors.append('Invalid EIP55 address is resolved correctly') + send_transaction.done_button.click_until_presence_of_element(send_transaction.element_by_text_part('Invalid address')) send_transaction.ok_button.click() self.errors.verify_no_errors() diff --git a/test/appium/views/profile_view.py b/test/appium/views/profile_view.py index bc09858c79..278b36eda7 100644 --- a/test/appium/views/profile_view.py +++ b/test/appium/views/profile_view.py @@ -63,7 +63,7 @@ class InviteFriendsInContactsButton(BaseButton): def __init__(self, driver): super(InviteFriendsInContactsButton, self).__init__(driver) - self.locator = self.Locator.accessibility_id('invite-friends') + self.locator = self.Locator.accessibility_id('invite-friends-button') class NetworkSettingsButton(BaseButton):