mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-27 08:55:39 +00:00
align e2e 11478
Signed-off-by: Churikova Tetiana <churikova.tm@gmail.com>
This commit is contained in:
parent
a4716cc494
commit
179e389e37
@ -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')
|
||||||
|
@ -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))
|
||||||
|
|
||||||
|
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user