e2e: remaining fixes
Signed-off-by: Churikova Tetiana <churikova.tm@gmail.com>
This commit is contained in:
parent
edabec6a12
commit
413960682a
|
@ -86,6 +86,7 @@ class TestPublicChatMultipleDevice(MultipleDeviceTestCase):
|
|||
chat_2 = home_2.get_chat_view()
|
||||
chat_2.select_mention_from_suggestion_list(username_1, username_1[:2])
|
||||
chat_2.send_message_button.click()
|
||||
chat_element.new_messages_counter.wait_for_element(30)
|
||||
if chat_element.new_messages_counter.text == '1':
|
||||
self.errors.append('Counter is not shown for mention in public chat')
|
||||
|
||||
|
|
|
@ -33,36 +33,35 @@ class TestTransactionWalletSingleDevice(SingleDeviceTestCase):
|
|||
@marks.high
|
||||
def test_keycard_fetching_balance_after_offline(self):
|
||||
sender = transaction_senders['F']
|
||||
sign_in_view = SignInView(self.driver)
|
||||
sign_in = SignInView(self.driver)
|
||||
|
||||
sign_in_view.just_fyi('Restore account with funds offline')
|
||||
sign_in_view.toggle_airplane_mode()
|
||||
sign_in_view.recover_access(sender['passphrase'], keycard=True)
|
||||
home_view = sign_in_view.get_home_view()
|
||||
wallet_view = home_view.wallet_button.click()
|
||||
wallet_view.set_up_wallet()
|
||||
sign_in.just_fyi('Restore account with funds offline')
|
||||
sign_in.toggle_airplane_mode()
|
||||
home = sign_in.recover_access(sender['passphrase'], keycard=True)
|
||||
|
||||
sign_in_view.just_fyi('Go back to online and check that balance is updated')
|
||||
sign_in_view.toggle_airplane_mode()
|
||||
wallet_view.wait_balance_is_changed('ETH')
|
||||
wallet_view.wait_balance_is_changed('STT')
|
||||
sign_in.just_fyi('Go back to online and check that balance is updated')
|
||||
sign_in.toggle_airplane_mode()
|
||||
|
||||
sign_in_view.just_fyi('Send some tokens to other account')
|
||||
home.connection_offline_icon.wait_for_invisibility_of_element(100)
|
||||
wallet = home.wallet_button.click()
|
||||
wallet.wait_balance_is_changed('ETH')
|
||||
wallet.wait_balance_is_changed('STT')
|
||||
|
||||
sign_in.just_fyi('Send some tokens to other account')
|
||||
recipient = "0x" + basic_user['address']
|
||||
sending_amount = wallet_view.get_unique_amount()
|
||||
sending_amount = wallet.get_unique_amount()
|
||||
asset = 'STT'
|
||||
wallet_view.accounts_status_account.click_until_presence_of_element(wallet_view.send_transaction_button)
|
||||
initial_amount_STT = wallet_view.get_asset_amount_by_name('STT')
|
||||
wallet_view.send_transaction(asset_name=asset, amount=sending_amount, recipient=recipient,
|
||||
wallet.accounts_status_account.click_until_presence_of_element(wallet.send_transaction_button)
|
||||
initial_amount_STT = wallet.get_asset_amount_by_name('STT')
|
||||
wallet.send_transaction(asset_name=asset, amount=sending_amount, recipient=recipient,
|
||||
sign_transaction=True, keycard=True)
|
||||
sign_in_view.toggle_airplane_mode()
|
||||
sign_in.toggle_airplane_mode()
|
||||
self.network_api.wait_for_confirmation_of_transaction(basic_user['address'], sending_amount, token=True)
|
||||
|
||||
sign_in_view.just_fyi('Change that balance is updated and transaction is appeared in history')
|
||||
|
||||
sign_in_view.toggle_airplane_mode()
|
||||
wallet_view.wait_balance_is_changed('STT', initial_amount_STT)
|
||||
wallet_view.find_transaction_in_history(amount=sending_amount, asset='STT')
|
||||
sign_in.just_fyi('Change that balance is updated and transaction is appeared in history')
|
||||
sign_in.toggle_airplane_mode()
|
||||
wallet.wait_balance_is_changed('STT', initial_amount_STT)
|
||||
wallet.find_transaction_in_history(amount=sending_amount, asset='STT')
|
||||
|
||||
@marks.testrail_id(6291)
|
||||
@marks.critical
|
||||
|
|
|
@ -177,7 +177,7 @@ class TestTransactionWalletSingleDevice(SingleDeviceTestCase):
|
|||
wallet.set_up_wallet()
|
||||
for asset in ('ETH', 'MDS', 'STT'):
|
||||
wallet.wait_balance_is_changed(asset)
|
||||
wallet.accounts_status_account.scroll_to_element(direction='up')
|
||||
wallet.swipe_up()
|
||||
wallet.accounts_status_account.click()
|
||||
transaction = wallet.transaction_history_button.click()
|
||||
if not wallet.element_by_translation_id("transactions-history-empty").is_element_displayed():
|
||||
|
|
|
@ -388,6 +388,7 @@ class ProfileView(BaseView):
|
|||
## take by Photo
|
||||
self.take_photo()
|
||||
self.click_system_back_button()
|
||||
self.profile_picture.click()
|
||||
self.take_photo()
|
||||
self.accept_photo_button.click()
|
||||
self.crop_photo_button.click()
|
||||
|
|
Loading…
Reference in New Issue