diff --git a/test/appium/tests/atomic/transactions/test_wallet.py b/test/appium/tests/atomic/transactions/test_wallet.py index 98ff200fe5..3e75c5799d 100644 --- a/test/appium/tests/atomic/transactions/test_wallet.py +++ b/test/appium/tests/atomic/transactions/test_wallet.py @@ -79,6 +79,7 @@ class TestTransactionWalletSingleDevice(SingleDeviceTestCase): sign_in_view.toggle_airplane_mode() wallet_view.wait_balance_is_changed('ETH') wallet_view.scan_tokens('STT') + initial_amount_STT = wallet_view.get_asset_amount_by_name('STT') sign_in_view.just_fyi('Send some tokens to other account') recipient = "0x" + basic_user['address'] @@ -91,7 +92,6 @@ class TestTransactionWalletSingleDevice(SingleDeviceTestCase): self.network_api.wait_for_confirmation_of_transaction(basic_user['address'], sending_amount, confirmations=6, token=True) sign_in_view.just_fyi('Change that balance is updated') - initial_amount_STT = wallet_view.get_asset_amount_by_name('STT') sign_in_view.toggle_airplane_mode() sign_in_view.just_fyi('Check that transaction is appeared in transaction history') diff --git a/test/appium/views/transactions_view.py b/test/appium/views/transactions_view.py index 719c29946f..570d609086 100644 --- a/test/appium/views/transactions_view.py +++ b/test/appium/views/transactions_view.py @@ -97,7 +97,7 @@ class TransactionTable(BaseElement): element.find_element() return element except NoSuchElementException: - time.sleep(5) + time.sleep(20) self.refresh_transactions() self.driver.fail('Transaction %s %s was not found on Wallet/Transaction screen' %(amount, asset)) diff --git a/test/appium/views/wallet_view.py b/test/appium/views/wallet_view.py index a863afb53e..c6419fbfc6 100644 --- a/test/appium/views/wallet_view.py +++ b/test/appium/views/wallet_view.py @@ -493,15 +493,9 @@ class WalletView(BaseView): elif self.asset_by_name(asset).is_element_present() and self.get_asset_amount_by_name(asset) == initial_balance: counter += 10 time.sleep(10) - # temp until Refresh button will be included in pull-to refresh self.put_app_to_background_and_back() self.driver.info('Waiting %s seconds for %s to update' % (counter,asset)) elif not self.asset_by_name(asset).is_element_present(10): - # temp until Refresh button will be included in pull-to refresh - self.accounts_status_account.click() - self.transaction_history_button.click() - self.find_element_by_translation_id('refresh').click() - self.back_button.click() counter += 10 time.sleep(10) if scan_tokens: