e2e: small nightly fix

Signed-off-by: Churikova Tetiana <churikova.tm@gmail.com>
This commit is contained in:
Churikova Tetiana 2021-08-23 17:16:08 +02:00
parent 5cd57254c9
commit 614f7211d2
No known key found for this signature in database
GPG Key ID: 0D4EA7B33B47E6D8
3 changed files with 9 additions and 8 deletions

View File

@ -324,7 +324,7 @@ class TestCreateAccount(SingleDeviceTestCase):
keycard_view = sign_in.begin_recovery_button.click()
keycard_view.connect_pairing_card_button.click()
keycard_view.pair_code_input.set_value(pair_code)
sign_in.pair_to_this_device_button.click()
keycard_view.confirm()
keycard_view.enter_default_pin()
sign_in.maybe_later_button.click_until_presence_of_element(sign_in.lets_go_button)
sign_in.lets_go_button.click_until_absense_of_element(sign_in.lets_go_button)

View File

@ -36,7 +36,7 @@ class TestBrowsing(SingleDeviceTestCase):
browsing.open_tabs_button.click()
browsing.empty_tab_button.click()
url = 'app.uniswap.org'
element_on_start_page = dapp.element_by_text('ETH')
element_on_start_page = dapp.element_by_text('Select a token')
web_page = dapp.open_url(url)
dapp.allow_button.click()
element_on_start_page.click()

View File

@ -59,14 +59,13 @@ class TestTransactionWalletSingleDevice(SingleDeviceTestCase):
sign_in = SignInView(self.driver)
sign_in.just_fyi('Restore account with funds offline')
sign_in.set_device_to_offline()
sign_in.toggle_airplane_mode()
sign_in.recover_access(sender['passphrase'])
home = sign_in.get_home_view()
sign_in.just_fyi('Go back to online and check that balance is updated')
sign_in.set_network_to_cellular_only()
home.continue_syncing_button.wait_and_click()
home.connection_offline_icon.wait_for_invisibility_of_element(300)
sign_in.toggle_airplane_mode()
home.connection_offline_icon.wait_for_invisibility_of_element(100)
wallet = home.wallet_button.click()
wallet.wait_balance_is_changed('ETH')
wallet.scan_tokens('STT')
@ -79,11 +78,11 @@ class TestTransactionWalletSingleDevice(SingleDeviceTestCase):
wallet.accounts_status_account.click_until_presence_of_element(wallet.send_transaction_button)
wallet.send_transaction(asset_name=asset, amount=sending_amount, recipient=recipient,
sign_transaction=True)
sign_in.set_device_to_offline()
sign_in.toggle_airplane_mode()
self.network_api.wait_for_confirmation_of_transaction(basic_user['address'], sending_amount, token=True)
sign_in.just_fyi('Change that balance is updated')
sign_in.set_network_to_cellular_only()
sign_in.toggle_airplane_mode()
sign_in.just_fyi('Check that transaction is appeared in transaction history')
wallet.wait_balance_is_changed('STT', initial_amount_STT)
@ -586,6 +585,8 @@ class TestTransactionWalletSingleDevice(SingleDeviceTestCase):
@marks.testrail_id(5437)
@marks.medium
@marks.skip
#TODO: rewrite with EIP1559 and #12476
def test_validation_amount_errors(self):
sender = wallet_users['C']
sign_in_view = SignInView(self.driver)