From b83fe64b0f1bbfc5c453ef3eb8c7d04ad42d0bed Mon Sep 17 00:00:00 2001 From: Churikova Tetiana Date: Wed, 11 May 2022 20:23:17 +0200 Subject: [PATCH] e2e: nightly fix for user --- .../tests/critical/wallet_and_tx/test_send_tx_dapp_keycard.py | 4 ++-- test/appium/tests/medium/test_multiple_devices.py | 1 + test/appium/tests/medium/test_single_device.py | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/test/appium/tests/critical/wallet_and_tx/test_send_tx_dapp_keycard.py b/test/appium/tests/critical/wallet_and_tx/test_send_tx_dapp_keycard.py index 80e5cf9e11..8f5e6032eb 100644 --- a/test/appium/tests/critical/wallet_and_tx/test_send_tx_dapp_keycard.py +++ b/test/appium/tests/critical/wallet_and_tx/test_send_tx_dapp_keycard.py @@ -14,8 +14,8 @@ from views.sign_in_view import SignInView class TestSendTxDeviceMerged(MultipleSharedDeviceTestCase): @classmethod def setup_class(cls): - cls.user = transaction_senders['ETH_ADI_STT_3'] - cls.recipient_address = '0x%s' % transaction_senders['ETH_7']['address'] + cls.user = transaction_senders['ETH_STT_4'] + cls.recipient_address = '0x%s' % transaction_senders['ETH_ADI_STT_3']['address'] cls.drivers, cls.loop = create_shared_drivers(1) [cls.amount_adi, cls.amount_eth, cls.amount_stt] = ['0.000%s' % str(random.randint(100, 999)) + '1' for _ in range(3)] cls.sign_in = SignInView(cls.drivers[0]) diff --git a/test/appium/tests/medium/test_multiple_devices.py b/test/appium/tests/medium/test_multiple_devices.py index d1db8c6e1a..6dd10abba0 100644 --- a/test/appium/tests/medium/test_multiple_devices.py +++ b/test/appium/tests/medium/test_multiple_devices.py @@ -715,6 +715,7 @@ class TestChatManagementMultipleDevice(MultipleDeviceTestCase): device_1.just_fyi('Grab user data for transactions and public chat, set up wallets') home_1 = device_1.create_user(keycard=True) + device_2.put_app_to_background_and_back() recipient_public_key, recipient_username = home_1.get_public_key_and_username(return_username=True) amount = device_1.get_unique_amount() asset_name = 'STT' diff --git a/test/appium/tests/medium/test_single_device.py b/test/appium/tests/medium/test_single_device.py index d05a21433e..1dadc8bd6f 100644 --- a/test/appium/tests/medium/test_single_device.py +++ b/test/appium/tests/medium/test_single_device.py @@ -517,8 +517,8 @@ class TestChatManagement(SingleDeviceTestCase): # TODO: can be added to any group where kk multiaccount with money is restored as additional check def test_keycard_same_seed_added_inside_multiaccount(self): sign_in = SignInView(self.driver) - recipient = "0x" + transaction_senders['ETH_7']['address'] - user = transaction_senders['ETH_ADI_STT_3'] + recipient = "0x" + transaction_senders['ETH_1']['address'] + user = transaction_senders['ETH_STT_4'] sign_in.just_fyi('Restore keycard multiaccount and logout') sign_in.recover_access(passphrase=user['passphrase'], keycard=True)