e2e: fix balance updating
Signed-off-by: Churikova Tetiana <churikova.tm@gmail.com>
This commit is contained in:
parent
5fecdd7830
commit
ee4f6ead12
|
@ -185,14 +185,13 @@ class TestCommandsMultipleDevices(MultipleDeviceTestCase):
|
||||||
send_transaction.confirm()
|
send_transaction.confirm()
|
||||||
send_transaction.sign_transaction_button.click()
|
send_transaction.sign_transaction_button.click()
|
||||||
chat_1_sender_message = chat_1.get_outgoing_transaction()
|
chat_1_sender_message = chat_1.get_outgoing_transaction()
|
||||||
# TODO: PN is waiting for #11175
|
home_1.click_system_home_button()
|
||||||
# home_1.click_system_home_button()
|
|
||||||
|
|
||||||
chat_2 = home_2.get_chat(sender['username']).click()
|
chat_2 = home_2.get_chat(sender['username']).click()
|
||||||
chat_2_receiver_message = chat_2.get_incoming_transaction()
|
chat_2_receiver_message = chat_2.get_incoming_transaction()
|
||||||
chat_2_receiver_message.decline_transaction.click()
|
chat_2_receiver_message.decline_transaction.click()
|
||||||
# home_1.open_notification_bar()
|
home_1.open_notification_bar()
|
||||||
# home_1.element_by_text_part('Request address for transaction declined').wait_and_click()
|
home_1.element_by_text_part('Request address for transaction declined').wait_and_click()
|
||||||
|
|
||||||
[message.transaction_status.wait_for_element_text(message.declined) for message in
|
[message.transaction_status.wait_for_element_text(message.declined) for message in
|
||||||
(chat_1_sender_message, chat_2_receiver_message)]
|
(chat_1_sender_message, chat_2_receiver_message)]
|
||||||
|
|
|
@ -131,12 +131,11 @@ class TestCommandsMultipleDevices(MultipleDeviceTestCase):
|
||||||
|
|
||||||
home_2.just_fyi('Check that transaction message is fetched from offline and sign transaction')
|
home_2.just_fyi('Check that transaction message is fetched from offline and sign transaction')
|
||||||
profile_2.airplane_mode_button.click()
|
profile_2.airplane_mode_button.click()
|
||||||
# TODO: PN is waiting for #11175
|
transaction_request_pn = 'Request transaction'
|
||||||
#transaction_request_pn = 'Request transaction'
|
device_2.open_notification_bar()
|
||||||
# device_2.open_notification_bar()
|
if not device_2.element_by_text(transaction_request_pn).is_element_displayed(60):
|
||||||
# if not device_2.element_by_text(transaction_request_pn).is_element_displayed(60):
|
self.errors.append("Push notification is not received after going back from offline")
|
||||||
# self.errors.append("Push notification is not received after going back from offline")
|
device_2.element_by_text(transaction_request_pn).click()
|
||||||
# device_2.element_by_text(transaction_request_pn).click()
|
|
||||||
home_2.connection_offline_icon.wait_for_invisibility_of_element(120)
|
home_2.connection_offline_icon.wait_for_invisibility_of_element(120)
|
||||||
home_2.get_chat(recipient_username).click()
|
home_2.get_chat(recipient_username).click()
|
||||||
chat_2_sender_message = chat_2.get_outgoing_transaction()
|
chat_2_sender_message = chat_2.get_outgoing_transaction()
|
||||||
|
|
|
@ -167,6 +167,7 @@ class WalletView(BaseView):
|
||||||
if (counter/60).is_integer():
|
if (counter/60).is_integer():
|
||||||
self.pull_to_refresh()
|
self.pull_to_refresh()
|
||||||
counter+=20
|
counter+=20
|
||||||
|
self.wallet_button.double_click()
|
||||||
counter += 10
|
counter += 10
|
||||||
time.sleep(10)
|
time.sleep(10)
|
||||||
self.driver.info('*Waiting %ss for %s updated balance*' % (counter,asset))
|
self.driver.info('*Waiting %ss for %s updated balance*' % (counter,asset))
|
||||||
|
|
Loading…
Reference in New Issue