2022-06-29 01:12:35 +00:00
|
|
|
|
|
|
|
from screens.StatusMainScreen import StatusMainScreen
|
|
|
|
from screens.SettingsScreen import SettingsScreen
|
|
|
|
|
|
|
|
_statusMain = StatusMainScreen()
|
2022-07-21 12:15:02 +00:00
|
|
|
_settingsScreen = SettingsScreen()
|
2022-06-29 01:12:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
@When("the user opens app settings screen")
|
2022-07-07 23:56:21 +00:00
|
|
|
def step(context: any):
|
2022-06-29 01:12:35 +00:00
|
|
|
_statusMain.open_settings()
|
|
|
|
|
2022-07-18 08:37:37 +00:00
|
|
|
@When("the user activates wallet and opens the wallet settings")
|
|
|
|
def step(context: any):
|
|
|
|
_settingsScreen.activate_open_wallet_settings()
|
|
|
|
|
|
|
|
@When("the user activates wallet and opens the wallet section")
|
2022-07-07 23:56:21 +00:00
|
|
|
def step(context: any):
|
|
|
|
_settingsScreen.activate_open_wallet_section()
|
2022-07-20 08:18:27 +00:00
|
|
|
|
|
|
|
@When("the user deletes the account |any|")
|
|
|
|
def step(context: any, account_name: str):
|
|
|
|
_statusMain.open_settings()
|
|
|
|
_settingsScreen.delete_account(account_name)
|
2022-07-07 23:56:21 +00:00
|
|
|
|
2022-07-21 12:15:02 +00:00
|
|
|
@When("the user toggles test networks")
|
|
|
|
def step(context: any):
|
|
|
|
_settingsScreen.toggle_test_networks()
|
|
|
|
|
2022-07-07 23:56:21 +00:00
|
|
|
@Then("the |any| seed phrase address is |any| displayed in the wallet")
|
|
|
|
def step(context: any, phrase :str, address: str):
|
|
|
|
_settingsScreen.verify_address(phrase, address)
|
2022-07-20 08:18:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
@Then("the account |any| is not in the list of accounts")
|
|
|
|
def step(context: any, account_name):
|
|
|
|
_settingsScreen.verify_no_account(account_name)
|
|
|
|
|