chore(@desktop/ui-tests): `authenticatePopupEnterPassword` renamed to `authenticate_popup_enter_password`

This commit is contained in:
Sale Djenic 2023-04-13 19:33:04 +02:00 committed by saledjenic
parent 67ad2ea24c
commit b7399ac7d3
3 changed files with 8 additions and 8 deletions

View File

@ -19,7 +19,7 @@ from drivers.SquishDriverVerification import *
from utils.ObjectAccess import * from utils.ObjectAccess import *
from .StatusMainScreen import MainScreenComponents from .StatusMainScreen import MainScreenComponents
from .StatusMainScreen import StatusMainScreen from .StatusMainScreen import StatusMainScreen
from .StatusMainScreen import authenticatePopupEnterPassword from .StatusMainScreen import authenticate_popup_enter_password
class SettingsScreenComponents(Enum): class SettingsScreenComponents(Enum):
SAVE_BUTTON: str = "settingsSave_StatusButton" SAVE_BUTTON: str = "settingsSave_StatusButton"
@ -164,7 +164,7 @@ class SettingsScreen:
click_obj_by_name(WalletSettingsScreen.DELETE_ACCOUNT.value) click_obj_by_name(WalletSettingsScreen.DELETE_ACCOUNT.value)
click_obj_by_name(WalletSettingsScreen.DELETE_ACCOUNT_CONFIRM.value) click_obj_by_name(WalletSettingsScreen.DELETE_ACCOUNT_CONFIRM.value)
authenticatePopupEnterPassword(password) authenticate_popup_enter_password(password)
def verify_no_account(self, account_name: str): def verify_no_account(self, account_name: str):
index = self._find_account_index(account_name) index = self._find_account_index(account_name)

View File

@ -53,7 +53,7 @@ class SharedPopup(Enum):
PASSWORD_INPUT: str = "sharedPopup_Password_Input" PASSWORD_INPUT: str = "sharedPopup_Password_Input"
PRIMARY_BUTTON: str = "sharedPopup_Primary_Button" PRIMARY_BUTTON: str = "sharedPopup_Primary_Button"
def authenticatePopupEnterPassword(password): def authenticate_popup_enter_password(password):
wait_for_object_and_type(SharedPopup.PASSWORD_INPUT.value, password) wait_for_object_and_type(SharedPopup.PASSWORD_INPUT.value, password)
click_obj_by_name(SharedPopup.PRIMARY_BUTTON.value) click_obj_by_name(SharedPopup.PRIMARY_BUTTON.value)

View File

@ -6,7 +6,7 @@ import sys
import common.Common as common import common.Common as common
from common.SeedUtils import * from common.SeedUtils import *
from .StatusMainScreen import StatusMainScreen from .StatusMainScreen import StatusMainScreen
from .StatusMainScreen import authenticatePopupEnterPassword from .StatusMainScreen import authenticate_popup_enter_password
from .SettingsScreen import SidebarComponents from .SettingsScreen import SidebarComponents
from drivers.SquishDriver import type_text as type_text from drivers.SquishDriver import type_text as type_text
@ -153,11 +153,11 @@ class StatusWalletScreen:
def add_account_popup_do_primary_action(self, password: str = NOT_APPLICABLE): def add_account_popup_do_primary_action(self, password: str = NOT_APPLICABLE):
click_obj_by_name(AddEditAccountPopup.PRIMARY_BUTTON.value) click_obj_by_name(AddEditAccountPopup.PRIMARY_BUTTON.value)
if password != NOT_APPLICABLE: if password != NOT_APPLICABLE:
authenticatePopupEnterPassword(password) authenticate_popup_enter_password(password)
def add_account_popup_open_edit_derivation_path_section(self, password: str): def add_account_popup_open_edit_derivation_path_section(self, password: str):
click_obj_by_name(AddEditAccountPopup.EDIT_DERIVATION_PATH_BUTTON.value) click_obj_by_name(AddEditAccountPopup.EDIT_DERIVATION_PATH_BUTTON.value)
authenticatePopupEnterPassword(password) authenticate_popup_enter_password(password)
def add_account_popup_change_account_name(self, name: str): def add_account_popup_change_account_name(self, name: str):
is_loaded_visible_and_enabled(AddEditAccountPopup.ACCOUNT_NAME.value, 1000) is_loaded_visible_and_enabled(AddEditAccountPopup.ACCOUNT_NAME.value, 1000)
@ -298,7 +298,7 @@ class StatusWalletScreen:
click_obj_by_name(RemoveAccountPopup.HAVE_PEN_PAPER.value) click_obj_by_name(RemoveAccountPopup.HAVE_PEN_PAPER.value)
click_obj_by_name(RemoveAccountPopup.CONFIRM_BUTTON.value) click_obj_by_name(RemoveAccountPopup.CONFIRM_BUTTON.value)
if password != NOT_APPLICABLE: if password != NOT_APPLICABLE:
authenticatePopupEnterPassword(password) authenticate_popup_enter_password(password)
def click_option_from_left_part_right_click_menu(self, option: str): def click_option_from_left_part_right_click_menu(self, option: str):
right_click_obj_by_name(MainWalletScreen.WALLET_LEFT_TAB.value) right_click_obj_by_name(MainWalletScreen.WALLET_LEFT_TAB.value)
@ -391,7 +391,7 @@ class StatusWalletScreen:
click_obj_by_name(SendPopup.SEND_BUTTON.value) click_obj_by_name(SendPopup.SEND_BUTTON.value)
authenticatePopupEnterPassword(password) authenticate_popup_enter_password(password)
def _click_repeater(self, repeater_object_name: str, object_name: str): def _click_repeater(self, repeater_object_name: str, object_name: str):
repeater = get_obj(repeater_object_name) repeater = get_obj(repeater_object_name)