From 16e6d93477a3cf36098224e8e664b00269c0b182 Mon Sep 17 00:00:00 2001 From: Anton Danchenko Date: Mon, 11 Feb 2019 16:08:11 +0200 Subject: [PATCH] e2e tests update (wallet) --- .../transactions/test_daaps_transactions.py | 4 +- .../tests/atomic/transactions/test_wallet.py | 178 ++++++++---------- test/appium/tests/base_test_case.py | 5 +- test/appium/tests/conftest.py | 2 +- test/appium/tests/marks.py | 1 + test/appium/views/base_view.py | 13 +- test/appium/views/send_transaction_view.py | 25 ++- test/appium/views/wallet_view.py | 5 +- 8 files changed, 116 insertions(+), 117 deletions(-) diff --git a/test/appium/tests/atomic/transactions/test_daaps_transactions.py b/test/appium/tests/atomic/transactions/test_daaps_transactions.py index 5b6728d658ed..e18f0fc93fe6 100644 --- a/test/appium/tests/atomic/transactions/test_daaps_transactions.py +++ b/test/appium/tests/atomic/transactions/test_daaps_transactions.py @@ -22,8 +22,8 @@ def test_send_transaction_from_daap(self): status_test_dapp.assets_button.click() send_transaction_view = status_test_dapp.request_stt_button.click() wallet_view = send_transaction_view.get_wallet_view() - wallet_view.done_button.click() - wallet_view.yes_button.click() + for _ in range(2): + wallet_view.got_it_button.click() send_transaction_view.sign_transaction() self.network_api.verify_balance_is_updated(initial_balance, address) diff --git a/test/appium/tests/atomic/transactions/test_wallet.py b/test/appium/tests/atomic/transactions/test_wallet.py index c547b29858fc..f1b69e24bbfd 100644 --- a/test/appium/tests/atomic/transactions/test_wallet.py +++ b/test/appium/tests/atomic/transactions/test_wallet.py @@ -9,7 +9,7 @@ from views.sign_in_view import SignInView -@marks.transaction +@marks.wallet_transaction class TestTransactionWalletSingleDevice(SingleDeviceTestCase): @marks.testrail_id(5307) @@ -25,15 +25,12 @@ def test_send_eth_from_wallet_to_contact(self): wallet_view = home_view.wallet_button.click() wallet_view.set_up_wallet() send_transaction = wallet_view.send_transaction_button.click() - send_transaction.amount_edit_box.click() - transaction_amount = send_transaction.get_unique_amount() - send_transaction.amount_edit_box.set_value(transaction_amount) - send_transaction.confirm() - send_transaction.chose_recipient_button.click() - send_transaction.recent_recipients_button.click() + send_transaction.contacts_button.click() recent_recipient = send_transaction.element_by_text(recipient['username']) - send_transaction.recent_recipients_button.click_until_presence_of_element(recent_recipient) recent_recipient.click() + transaction_amount = send_transaction.get_unique_amount() + send_transaction.amount_edit_box.set_value(transaction_amount) + send_transaction.next_button.click() send_transaction.sign_transaction() self.network_api.find_transaction_by_unique_amount(sender['address'], transaction_amount) @@ -47,14 +44,12 @@ def test_send_eth_from_wallet_to_address(self): wallet_view = home_view.wallet_button.click() wallet_view.set_up_wallet() send_transaction = wallet_view.send_transaction_button.click() - send_transaction.amount_edit_box.click() + send_transaction.enter_recipient_address_input.set_value(recipient['address']) + send_transaction.next_button.click() transaction_amount = send_transaction.get_unique_amount() + send_transaction.amount_edit_box.click() send_transaction.amount_edit_box.set_value(transaction_amount) - send_transaction.confirm() - send_transaction.chose_recipient_button.click() - send_transaction.enter_recipient_address_button.click() - send_transaction.enter_recipient_address_input.set_value(recipient['address']) - send_transaction.done_button.click() + send_transaction.next_button.click() send_transaction.sign_transaction() self.network_api.find_transaction_by_unique_amount(sender['address'], transaction_amount) @@ -71,17 +66,13 @@ def test_send_stt_from_wallet(self): wallet_view = home_view.wallet_button.click() wallet_view.set_up_wallet() send_transaction = wallet_view.send_transaction_button.click() - stt_button = send_transaction.asset_by_name('STT') - send_transaction.select_asset_button.click_until_presence_of_element(stt_button) - stt_button.click() - send_transaction.amount_edit_box.click() + send_transaction.enter_recipient_address_input.set_value(recipient['address']) + send_transaction.next_button.click() + send_transaction.select_token('Status Test Token') amount = send_transaction.get_unique_amount() + send_transaction.amount_edit_box.click() send_transaction.amount_edit_box.set_value(amount) - send_transaction.confirm() - send_transaction.chose_recipient_button.click() - send_transaction.enter_recipient_address_button.click() - send_transaction.enter_recipient_address_input.set_value(recipient['address']) - send_transaction.done_button.click() + send_transaction.next_button.click() send_transaction.sign_transaction() self.network_api.find_transaction_by_unique_amount(recipient['address'], amount, token=True) @@ -91,23 +82,19 @@ def test_transaction_wrong_password_wallet(self): recipient = basic_user sender = wallet_users['A'] sign_in_view = SignInView(self.driver) - sign_in_view.recover_access(sender['passphrase']) - home_view = sign_in_view.get_home_view() + home_view = sign_in_view.recover_access(sender['passphrase']) wallet_view = home_view.wallet_button.click() wallet_view.set_up_wallet() send_transaction = wallet_view.send_transaction_button.click() - send_transaction.amount_edit_box.click() + send_transaction.enter_recipient_address_input.set_value(recipient['address']) + send_transaction.next_button.click() transaction_amount = send_transaction.get_unique_amount() + send_transaction.amount_edit_box.click() send_transaction.amount_edit_box.set_value(transaction_amount) - send_transaction.confirm() - send_transaction.chose_recipient_button.click() - send_transaction.enter_recipient_address_button.click() - send_transaction.enter_recipient_address_input.set_value(recipient['address']) - send_transaction.done_button.click() - send_transaction.sign_transaction_button.click() - send_transaction.enter_password_input.click() + send_transaction.next_button.click() + send_transaction.confirm_button.click() send_transaction.enter_password_input.send_keys('wrong_password') - send_transaction.sign_transaction_button.click() + send_transaction.send_button.click() send_transaction.find_full_text('Wrong password', 20) @marks.testrail_id(1452) @@ -116,22 +103,18 @@ def test_transaction_appears_in_history(self): sign_in_view = SignInView(self.driver) sign_in_view.create_user() home_view = sign_in_view.get_home_view() - transaction_amount = home_view.get_unique_amount() sender_public_key = home_view.get_public_key() sender_address = home_view.public_key_to_address(sender_public_key) home_view.home_button.click() self.network_api.get_donate(sender_address) wallet_view = home_view.wallet_button.click() wallet_view.set_up_wallet() - wallet_view.wait_balance_changed_on_wallet_screen() send_transaction = wallet_view.send_transaction_button.click() - send_transaction.amount_edit_box.click() - send_transaction.amount_edit_box.set_value(transaction_amount) - send_transaction.confirm() - send_transaction.chose_recipient_button.click() - send_transaction.enter_recipient_address_button.click() send_transaction.enter_recipient_address_input.set_value(recipient['address']) - send_transaction.done_button.click() + send_transaction.next_button.click() + transaction_amount = send_transaction.get_unique_amount() + send_transaction.amount_edit_box.set_value(transaction_amount) + send_transaction.next_button.click() send_transaction.sign_transaction() self.network_api.find_transaction_by_unique_amount(recipient['address'], transaction_amount) transactions_view = wallet_view.transaction_history_button.click() @@ -141,22 +124,15 @@ def test_transaction_appears_in_history(self): @marks.medium def test_send_eth_from_wallet_incorrect_address(self): recipient = basic_user - sender = wallet_users['B'] sign_in_view = SignInView(self.driver) - sign_in_view.recover_access(sender['passphrase']) + sign_in_view.create_user() home_view = sign_in_view.get_home_view() wallet_view = home_view.wallet_button.click() wallet_view.set_up_wallet() send_transaction = wallet_view.send_transaction_button.click() - send_transaction.amount_edit_box.click() - transaction_amount = send_transaction.get_unique_amount() - send_transaction.amount_edit_box.set_value(transaction_amount) - send_transaction.confirm() - send_transaction.chose_recipient_button.click() - send_transaction.enter_recipient_address_button.click() send_transaction.enter_recipient_address_input.set_value(recipient['public_key']) - send_transaction.done_button.click() - send_transaction.find_text_part('Invalid address:', 20) + send_transaction.next_button.click() + send_transaction.find_text_part('Invalid address', 20) @marks.logcat @marks.testrail_id(5416) @@ -165,19 +141,16 @@ def test_logcat_send_transaction_from_wallet(self): sender = transaction_senders['R'] recipient = basic_user sign_in_view = SignInView(self.driver) - sign_in_view.recover_access(sender['passphrase'], unique_password) - home_view = sign_in_view.get_home_view() + home_view = sign_in_view.recover_access(sender['passphrase'], unique_password) wallet_view = home_view.wallet_button.click() wallet_view.set_up_wallet() send_transaction = wallet_view.send_transaction_button.click() - send_transaction.amount_edit_box.click() + send_transaction.enter_recipient_address_input.set_value(recipient['address']) + send_transaction.next_button.click() transaction_amount = send_transaction.get_unique_amount() + send_transaction.amount_edit_box.click() send_transaction.amount_edit_box.set_value(transaction_amount) - send_transaction.confirm() - send_transaction.chose_recipient_button.click() - send_transaction.enter_recipient_address_button.click() - send_transaction.enter_recipient_address_input.set_value(recipient['address']) - send_transaction.done_button.click() + send_transaction.next_button.click() send_transaction.sign_transaction(unique_password) send_transaction.check_no_values_in_logcat(password=unique_password) @@ -189,22 +162,16 @@ def test_send_token_with_7_decimals(self): sign_in_view = SignInView(self.driver) sign_in_view.recover_access(sender['passphrase']) home_view = sign_in_view.get_home_view() - home_view.add_contact(recipient['public_key']) - home_view.get_back_to_home_view() wallet_view = home_view.wallet_button.click() wallet_view.set_up_wallet() send_transaction = wallet_view.send_transaction_button.click() - adi_button = send_transaction.asset_by_name('ADI') - send_transaction.select_asset_button.click_until_presence_of_element(adi_button) - adi_button.click() - send_transaction.amount_edit_box.click() + send_transaction.enter_recipient_address_input.set_value(recipient['address']) + send_transaction.next_button.click() + send_transaction.select_token('Adi Test Token') amount = '0.0%s' % str(random.randint(10000, 99999)) + '1' + send_transaction.amount_edit_box.click() send_transaction.amount_edit_box.set_value(amount) - send_transaction.confirm() - send_transaction.chose_recipient_button.click() - send_transaction.enter_recipient_address_button.click() - send_transaction.enter_recipient_address_input.set_value(recipient['address']) - send_transaction.done_button.click() + send_transaction.next_button.click() send_transaction.sign_transaction() self.network_api.find_transaction_by_unique_amount(recipient['address'], amount, token=True, decimals=7) @@ -212,23 +179,26 @@ def test_send_token_with_7_decimals(self): @marks.critical def test_token_with_more_than_allowed_decimals(self): sender = wallet_users['C'] + recipient = basic_user sign_in_view = SignInView(self.driver) sign_in_view.recover_access(sender['passphrase']) wallet_view = sign_in_view.wallet_button.click() wallet_view.set_up_wallet() send_transaction = wallet_view.send_transaction_button.click() - adi_button = send_transaction.asset_by_name('ADI') - send_transaction.select_asset_button.click_until_presence_of_element(adi_button) - adi_button.click() + send_transaction.enter_recipient_address_input.set_value(recipient['address']) + send_transaction.next_button.click() + send_transaction.select_token('Adi Test Token') send_transaction.amount_edit_box.click() amount = '0.0%s' % str(random.randint(100000, 999999)) + '1' send_transaction.amount_edit_box.set_value(amount) error_text = 'Amount is too precise. Max number of decimals is 7.' if not send_transaction.element_by_text(error_text).is_element_displayed(): self.errors.append('Warning about too precise amount is not shown when sending a transaction') - send_transaction.back_button.click() + for _ in range(2): + send_transaction.back_button.click() wallet_view.receive_transaction_button.click() wallet_view.send_transaction_request.click() + adi_button = send_transaction.asset_by_name('ADI') send_transaction.select_asset_button.click_until_presence_of_element(adi_button) adi_button.click() send_transaction.amount_edit_box.set_value(amount) @@ -247,20 +217,18 @@ def test_send_valid_amount_after_insufficient_funds_error(self): wallet_view.set_up_wallet() bigger_amount = wallet_view.get_eth_value() + 1 send_transaction = wallet_view.send_transaction_button.click() + send_transaction.enter_recipient_address_input.set_value(basic_user['address']) + send_transaction.next_button.click() amount_edit_box = send_transaction.amount_edit_box amount_edit_box.click() amount_edit_box.set_value(bigger_amount) send_transaction.element_by_text('Insufficient funds').wait_for_visibility_of_element(5) - valid_amount = send_transaction.get_unique_amount() amount_edit_box.clear() amount_edit_box.set_value(valid_amount) - send_transaction.confirm() - send_transaction.chose_recipient_button.click() - send_transaction.enter_recipient_address_button.click() - send_transaction.enter_recipient_address_input.set_value(basic_user['address']) - send_transaction.done_button.click() + send_transaction.next_button.click() send_transaction.sign_transaction() + send_transaction.confirm() self.network_api.find_transaction_by_unique_amount(sender['address'], valid_amount) @marks.testrail_id(5471) @@ -271,12 +239,14 @@ def test_insufficient_funds_wallet_0_balance(self): wallet_view = sign_in_view.wallet_button.click() wallet_view.set_up_wallet() send_transaction = wallet_view.send_transaction_button.click() + send_transaction.enter_recipient_address_input.set_value(basic_user['address']) + send_transaction.next_button.click() send_transaction.amount_edit_box.set_value(1) error_text = send_transaction.element_by_text('Insufficient funds') if not error_text.is_element_displayed(): self.errors.append("'Insufficient funds' error is now shown when sending 1 ETH from wallet with balance 0") - send_transaction.select_asset_button.click() - send_transaction.asset_by_name('STT').click() + send_transaction.select_token('Status Test Token') + send_transaction.amount_edit_box.click() send_transaction.amount_edit_box.set_value(1) if not error_text.is_element_displayed(): self.errors.append("'Insufficient funds' error is now shown when sending 1 STT from wallet with balance 0") @@ -295,15 +265,16 @@ def test_insufficient_funds_wallet_positive_balance(self): if eth_value == 0 or stt_value == 0: pytest.fail('No funds!') send_transaction = wallet_view.send_transaction_button.click() + send_transaction.enter_recipient_address_input.set_value(basic_user['address']) + send_transaction.next_button.click() send_transaction.amount_edit_box.set_value(round(eth_value + 1)) error_text = send_transaction.element_by_text('Insufficient funds') if not error_text.is_element_displayed(): self.errors.append( "'Insufficient funds' error is now shown when sending %s ETH from wallet with balance %s" % ( round(eth_value + 1), eth_value)) - send_transaction.select_asset_button.click() - send_transaction.asset_by_name('STT').scroll_to_element() - send_transaction.asset_by_name('STT').click() + send_transaction.select_token('Status Test Token') + send_transaction.amount_edit_box.click() send_transaction.amount_edit_box.set_value(round(stt_value + 1)) if not error_text.is_element_displayed(): self.errors.append( @@ -313,6 +284,7 @@ def test_insufficient_funds_wallet_positive_balance(self): @marks.testrail_id(5359) @marks.critical + @marks.skip def test_modify_transaction_fee_values(self): sender = transaction_senders['U'] sign_in_view = SignInView(self.driver) @@ -321,21 +293,22 @@ def test_modify_transaction_fee_values(self): wallet_view.set_up_wallet() send_transaction = wallet_view.send_transaction_button.click() + send_transaction.enter_recipient_address_input.set_value(basic_user['address']) + send_transaction.next_button.click() + amount = send_transaction.get_unique_amount() send_transaction.amount_edit_box.set_value(amount) - send_transaction.confirm() - send_transaction.chose_recipient_button.click() - send_transaction.enter_recipient_address_button.click() - recipient_address = basic_user['address'] - send_transaction.enter_recipient_address_input.set_value(recipient_address) - send_transaction.done_button.click() - send_transaction.advanced_button.click() - send_transaction.transaction_fee_button.click() + send_transaction.next_button.click() + + send_transaction.element_by_text_part('network fee').click() + send_transaction.element_by_text_part('Custom').click() + send_transaction.gas_limit_input.clear() send_transaction.gas_limit_input.set_value('1') send_transaction.gas_price_input.clear() send_transaction.gas_price_input.set_value('1') send_transaction.total_fee_input.click() + send_transaction.done_button.click() send_transaction.sign_transaction_button.click_until_presence_of_element(send_transaction.enter_password_input) send_transaction.enter_password_input.send_keys(common_password) @@ -348,7 +321,7 @@ def test_modify_transaction_fee_values(self): send_transaction.confirm() send_transaction.chose_recipient_button.click() send_transaction.enter_recipient_address_button.click() - send_transaction.enter_recipient_address_input.set_value(recipient_address) + send_transaction.enter_recipient_address_input.set_value(basic_user['address']) send_transaction.done_button.click() send_transaction.advanced_button.click() @@ -405,7 +378,7 @@ def test_can_see_all_transactions_in_history(self): self.verify_no_errors() -@marks.transaction +@marks.wallet_transaction class TestTransactionWalletMultipleDevice(MultipleDeviceTestCase): @marks.testrail_id(5378) @@ -423,14 +396,17 @@ def test_transaction_message_sending_from_wallet(self): wallet_1 = home_1.wallet_button.click() wallet_1.set_up_wallet() + send_transaction = wallet_1.send_transaction_button.click() - send_transaction.amount_edit_box.click() + + send_transaction.contacts_button.click() + recent_recipient = send_transaction.element_by_text(recipient['username']) + recent_recipient.click() + amount = send_transaction.get_unique_amount() send_transaction.amount_edit_box.set_value(amount) - send_transaction.confirm() - send_transaction.chose_recipient_button.click() - send_transaction.recent_recipients_button.click() - send_transaction.element_by_text_part(recipient['username']).click() + send_transaction.next_button.click() + send_transaction.sign_transaction() wallet_1.home_button.click() diff --git a/test/appium/tests/base_test_case.py b/test/appium/tests/base_test_case.py index 7dd87aa919ed..0eb985782c3a 100644 --- a/test/appium/tests/base_test_case.py +++ b/test/appium/tests/base_test_case.py @@ -136,8 +136,11 @@ def get_alert_text(self, driver): def add_alert_text_to_report(self, driver): if self.is_alert_present(driver): - test_suite_data.current_test.testruns[-1].error += ", also Unexpected Alert is shown: '%s'" \ + try: + test_suite_data.current_test.testruns[-1].error += ", also Unexpected Alert is shown: '%s'" \ % self.get_alert_text(driver) + except TypeError: + pass class Driver(webdriver.Remote): diff --git a/test/appium/tests/conftest.py b/test/appium/tests/conftest.py index 7e219175c18a..cee5a056fa7e 100644 --- a/test/appium/tests/conftest.py +++ b/test/appium/tests/conftest.py @@ -40,7 +40,7 @@ def pytest_addoption(parser): help='Specify environment: local/sauce/api') parser.addoption('--platform_version', action='store', - default='8.0', + default='7.1', help='Android device platform version') parser.addoption('--log', action='store', diff --git a/test/appium/tests/marks.py b/test/appium/tests/marks.py index 71feda5ade70..d48ec1850ebb 100644 --- a/test/appium/tests/marks.py +++ b/test/appium/tests/marks.py @@ -18,6 +18,7 @@ message_reliability = pytest.mark.message_reliability transaction = pytest.mark.transaction wallet = pytest.mark.wallet +wallet_transaction = pytest.mark.wallet_transaction wallet_modal = pytest.mark.wallet_modal sign_in = pytest.mark.sign_in skip = pytest.mark.skip diff --git a/test/appium/views/base_view.py b/test/appium/views/base_view.py index 9ef6a3c30727..901e8c7c312d 100644 --- a/test/appium/views/base_view.py +++ b/test/appium/views/base_view.py @@ -55,7 +55,13 @@ def __init__(self, driver): class YesButton(BaseButton): def __init__(self, driver): super(YesButton, self).__init__(driver) - self.locator = self.Locator.xpath_selector("//*[@text='YES' or @text='GOT IT']") + self.locator = self.Locator.xpath_selector("//*[@text='YES']") + + +class GotItButton(BaseButton): + def __init__(self, driver): + super(GotItButton, self).__init__(driver) + self.locator = self.Locator.xpath_selector("//*[@text='GOT IT']") class NoButton(BaseButton): @@ -149,7 +155,7 @@ class NextButton(BaseButton): def __init__(self, driver): super(NextButton, self).__init__(driver) self.locator = self.Locator.xpath_selector( - "//android.widget.TextView[@text='NEXT']") + "//android.widget.TextView[@text='NEXT' or @text='Next']") class AddButton(BaseButton): @@ -213,7 +219,7 @@ def __init__(self, driver): class ConfirmButton(BaseButton): def __init__(self, driver): super(ConfirmButton, self).__init__(driver) - self.locator = self.Locator.xpath_selector("//*[@text='CONFIRM']") + self.locator = self.Locator.xpath_selector("//*[@text='CONFIRM' or @text='Confirm']") class ProgressBar(BaseElement): @@ -287,6 +293,7 @@ def __init__(self, driver): self.connection_status = ConnectionStatusText(self.driver) self.cross_icon = CrossIcon(self.driver) self.show_roots_button = ShowRoots(self.driver) + self.got_it_button = GotItButton(self.driver) self.apps_button = AppsButton(self.driver) self.status_app_icon = StatusAppIcon(self.driver) diff --git a/test/appium/views/send_transaction_view.py b/test/appium/views/send_transaction_view.py index e14745ea76b7..e6e7eb06878c 100644 --- a/test/appium/views/send_transaction_view.py +++ b/test/appium/views/send_transaction_view.py @@ -75,12 +75,12 @@ def __init__(self, driver): class EnterRecipientAddressInput(BaseEditBox): def __init__(self, driver): super(EnterRecipientAddressInput, self).__init__(driver) - self.locator = self.Locator.xpath_selector("//*[@text='Enter recipient address']") + self.locator = self.Locator.accessibility_id("recipient-address-input") -class RecentRecipientsButton(BaseButton): +class ContactsButton(BaseButton): def __init__(self, driver): - super(RecentRecipientsButton, self).__init__(driver) + super(ContactsButton, self).__init__(driver) self.locator = self.Locator.xpath_selector("//*[@text='Contacts']") @@ -156,6 +156,12 @@ def __init__(self, driver): self.locator = self.Locator.text_selector('Not enough ETH for gas') +class SendButton(BaseButton): + def __init__(self, driver): + super(SendButton, self).__init__(driver) + self.locator = self.Locator.xpath_selector("//*[@text='Send']") + + class ValidationWarnings(object): def __init__(self, driver): self.not_enough_eth_for_gas = NotEnoughEthForGas(driver) @@ -170,7 +176,7 @@ def __init__(self, driver): self.scan_qr_code_button = ScanQRCodeButton(self.driver) self.enter_recipient_address_input = EnterRecipientAddressInput(self.driver) self.first_recipient_button = FirstRecipient(self.driver) - self.recent_recipients_button = RecentRecipientsButton(self.driver) + self.contacts_button = ContactsButton(self.driver) self.amount_edit_box = AmountEditBox(self.driver) self.advanced_button = AdvancedButton(self.driver) @@ -183,6 +189,7 @@ def __init__(self, driver): self.cancel_button = CancelButton(self.driver) self.sign_transaction_button = SignTransactionButton(self.driver) self.sign_in_phrase_text = SignInPhraseText(self.driver) + self.send_button = SendButton(self.driver) self.password_input = PasswordInput(self.driver) self.enter_password_input = EnterPasswordInput(self.driver) self.got_it_button = GotItButton(self.driver) @@ -205,12 +212,16 @@ def complete_onboarding(self): self.yes_button.click() def sign_transaction(self, sender_password: str = common_password): - self.sign_transaction_button.click_until_presence_of_element(self.enter_password_input) + self.confirm_button.click() self.enter_password_input.send_keys(sender_password) - self.sign_transaction_button.click_until_presence_of_element(self.got_it_button) - self.progress_bar.wait_for_invisibility_of_element(20) + self.send_button.click() self.got_it_button.click() + def select_token(self, token_text): + for text in 'Ropsten Ether', token_text: + button = self.element_by_text(text) + button.click() + def get_transaction_fee_total(self): return float(self.transaction_fee_total_value.text.split()[0]) diff --git a/test/appium/views/wallet_view.py b/test/appium/views/wallet_view.py index 8ef8d7404e52..bf52d64f43e0 100644 --- a/test/appium/views/wallet_view.py +++ b/test/appium/views/wallet_view.py @@ -259,8 +259,9 @@ def get_sign_in_phrase(self): def set_up_wallet(self): self.set_up_button.click() phrase = self.sign_in_phrase.string - self.done_button.click() - self.yes_button.click() + self.got_it_button.click() + time.sleep(2) + self.got_it_button.click() return phrase def get_wallet_address(self):