align e2e 11478

Signed-off-by: Churikova Tetiana <churikova.tm@gmail.com>
This commit is contained in:
Churikova Tetiana 2020-12-01 15:56:42 +01:00
parent a4716cc494
commit 179e389e37
No known key found for this signature in database
GPG Key ID: 0D4EA7B33B47E6D8
3 changed files with 2 additions and 8 deletions

View File

@ -79,6 +79,7 @@ class TestTransactionWalletSingleDevice(SingleDeviceTestCase):
sign_in_view.toggle_airplane_mode() sign_in_view.toggle_airplane_mode()
wallet_view.wait_balance_is_changed('ETH') wallet_view.wait_balance_is_changed('ETH')
wallet_view.scan_tokens('STT') 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') sign_in_view.just_fyi('Send some tokens to other account')
recipient = "0x" + basic_user['address'] 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) 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') 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.toggle_airplane_mode()
sign_in_view.just_fyi('Check that transaction is appeared in transaction history') sign_in_view.just_fyi('Check that transaction is appeared in transaction history')

View File

@ -97,7 +97,7 @@ class TransactionTable(BaseElement):
element.find_element() element.find_element()
return element return element
except NoSuchElementException: except NoSuchElementException:
time.sleep(5) time.sleep(20)
self.refresh_transactions() self.refresh_transactions()
self.driver.fail('Transaction %s %s was not found on Wallet/Transaction screen' %(amount, asset)) self.driver.fail('Transaction %s %s was not found on Wallet/Transaction screen' %(amount, asset))

View File

@ -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: elif self.asset_by_name(asset).is_element_present() and self.get_asset_amount_by_name(asset) == initial_balance:
counter += 10 counter += 10
time.sleep(10) time.sleep(10)
# temp until Refresh button will be included in pull-to refresh
self.put_app_to_background_and_back() self.put_app_to_background_and_back()
self.driver.info('Waiting %s seconds for %s to update' % (counter,asset)) self.driver.info('Waiting %s seconds for %s to update' % (counter,asset))
elif not self.asset_by_name(asset).is_element_present(10): 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 counter += 10
time.sleep(10) time.sleep(10)
if scan_tokens: if scan_tokens: