chore: update test
This commit is contained in:
parent
43acfc82ab
commit
7c5af79b19
|
@ -39,6 +39,7 @@ class AccountPopup(BasePopup):
|
||||||
# derivation
|
# derivation
|
||||||
self._address_text_edit = TextEdit(names.mainWallet_AddEditAccountPopup_AccountWatchOnlyAddress)
|
self._address_text_edit = TextEdit(names.mainWallet_AddEditAccountPopup_AccountWatchOnlyAddress)
|
||||||
self._add_save_account_confirmation_button = Button(names.mainWallet_AddEditAccountPopup_PrimaryButton)
|
self._add_save_account_confirmation_button = Button(names.mainWallet_AddEditAccountPopup_PrimaryButton)
|
||||||
|
self.copy_derivation_path_button = Button(names.mainWallet_AddEditAccountPopup_CopyDerivationPathButton)
|
||||||
self._edit_derivation_path_button = Button(names.mainWallet_AddEditAccountPopup_EditDerivationPathButton)
|
self._edit_derivation_path_button = Button(names.mainWallet_AddEditAccountPopup_EditDerivationPathButton)
|
||||||
self._derivation_path_combobox_button = Button(
|
self._derivation_path_combobox_button = Button(
|
||||||
names.mainWallet_AddEditAccountPopup_PreDefinedDerivationPathsButton)
|
names.mainWallet_AddEditAccountPopup_PreDefinedDerivationPathsButton)
|
||||||
|
|
|
@ -366,6 +366,7 @@ addAccountPopup_OriginOption_StatusListItem = {"container": statusDesktop_mainWi
|
||||||
mainWallet_AddEditAccountPopup_OriginOptionWatchOnlyAcc = {"container": statusDesktop_mainWindow, "objectName": "AddAccountPopup-OriginOption-LABEL-OPTION-ADD-WATCH-ONLY-ACC", "type": "StatusListItem", "visible": True}
|
mainWallet_AddEditAccountPopup_OriginOptionWatchOnlyAcc = {"container": statusDesktop_mainWindow, "objectName": "AddAccountPopup-OriginOption-LABEL-OPTION-ADD-WATCH-ONLY-ACC", "type": "StatusListItem", "visible": True}
|
||||||
mainWallet_AddEditAccountPopup_AccountWatchOnlyAddressComponent = {"container": mainWallet_AddEditAccountPopup_Content, "objectName": "AddAccountPopup-WatchOnlyAddress", "type": "StatusInput", "visible": True}
|
mainWallet_AddEditAccountPopup_AccountWatchOnlyAddressComponent = {"container": mainWallet_AddEditAccountPopup_Content, "objectName": "AddAccountPopup-WatchOnlyAddress", "type": "StatusInput", "visible": True}
|
||||||
mainWallet_AddEditAccountPopup_AccountWatchOnlyAddress = {"container": mainWallet_AddEditAccountPopup_AccountWatchOnlyAddressComponent, "type": "TextEdit", "unnamed": 1, "visible": True}
|
mainWallet_AddEditAccountPopup_AccountWatchOnlyAddress = {"container": mainWallet_AddEditAccountPopup_AccountWatchOnlyAddressComponent, "type": "TextEdit", "unnamed": 1, "visible": True}
|
||||||
|
mainWallet_AddEditAccountPopup_CopyDerivationPathButton = {"container": statusDesktop_mainWindow, "objectName": "copy-icon", "type": "CopyButton", "visible": True}
|
||||||
mainWallet_AddEditAccountPopup_EditDerivationPathButton = {"container": statusDesktop_mainWindow, "objectName": "AddAccountPopup-EditDerivationPath", "type": "StatusButton", "visible": True}
|
mainWallet_AddEditAccountPopup_EditDerivationPathButton = {"container": statusDesktop_mainWindow, "objectName": "AddAccountPopup-EditDerivationPath", "type": "StatusButton", "visible": True}
|
||||||
mainWallet_AddEditAccountPopup_ResetDerivationPathButton = {"container": statusDesktop_mainWindow, "objectName": "AddAccountPopup-ResetDerivationPath", "type": "StatusLinkText", "enabled": True, "visible": True}
|
mainWallet_AddEditAccountPopup_ResetDerivationPathButton = {"container": statusDesktop_mainWindow, "objectName": "AddAccountPopup-ResetDerivationPath", "type": "StatusLinkText", "enabled": True, "visible": True}
|
||||||
mainWallet_AddEditAccountPopup_DerivationPathInputComponent = {"container": statusDesktop_mainWindow, "objectName": "AddAccountPopup-DerivationPathInput", "type": "DerivationPathInput", "visible": True}
|
mainWallet_AddEditAccountPopup_DerivationPathInputComponent = {"container": statusDesktop_mainWindow, "objectName": "AddAccountPopup-DerivationPathInput", "type": "DerivationPathInput", "visible": True}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import time
|
import time
|
||||||
|
|
||||||
import allure
|
import allure
|
||||||
|
import pyperclip
|
||||||
import pytest
|
import pytest
|
||||||
from allure_commons._allure import step
|
from allure_commons._allure import step
|
||||||
|
|
||||||
|
@ -67,3 +68,22 @@ def test_plus_button_manage_account_from_seed_phrase(main_screen: MainWindow, us
|
||||||
add_new_account = account_popup.set_name(name).set_emoji(emoji).set_color(color).open_add_new_account_popup()
|
add_new_account = account_popup.set_name(name).set_emoji(emoji).set_color(color).open_add_new_account_popup()
|
||||||
add_new_account.enter_new_seed_phrase(mnemonic_data.split())
|
add_new_account.enter_new_seed_phrase(mnemonic_data.split())
|
||||||
assert add_new_account.get_already_added_error() == WalletSeedPhrase.WALLET_SEED_PHRASE_ALREADY_ADDED.value
|
assert add_new_account.get_already_added_error() == WalletSeedPhrase.WALLET_SEED_PHRASE_ALREADY_ADDED.value
|
||||||
|
|
||||||
|
with step('Delete account'):
|
||||||
|
with step('Delete wallet account'):
|
||||||
|
wallet.left_panel.delete_account_from_context_menu(name).agree_and_confirm()
|
||||||
|
|
||||||
|
with step('Add the same account again and check derivation path'):
|
||||||
|
add_new_account_popup = wallet.left_panel.open_add_account_popup()
|
||||||
|
add_same_account = add_new_account_popup.set_name(name).set_emoji(emoji).set_color(color).open_add_new_account_popup()
|
||||||
|
add_same_account.import_new_seed_phrase(mnemonic_data.split())
|
||||||
|
add_new_account_popup.save_changes()
|
||||||
|
authenticate_with_password(user_account)
|
||||||
|
add_new_account_popup.wait_until_hidden()
|
||||||
|
|
||||||
|
with step('Verify derivation path'):
|
||||||
|
edit_account_popup = wallet.left_panel.open_edit_account_popup_from_context_menu(name)
|
||||||
|
edit_account_popup.copy_derivation_path_button.click()
|
||||||
|
derivation_path = pyperclip.paste()
|
||||||
|
assert derivation_path.endswith('0')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue