test(suite_settings): Restore broken tests

Updated `walletInitSteps` and `settingsSteps` properly: `settingsSteps.py` was referring to some `wallet_init_steps` methods but it was not imported. Reorganization and cleanup.
This commit is contained in:
Noelia 2023-01-23 11:24:58 +01:00 committed by Noelia
parent 6293c8f21f
commit 7a1c768898
2 changed files with 3 additions and 12 deletions

View File

@ -1,5 +1,4 @@
import steps.commonInitSteps as init_steps
import steps.commonInitSteps as init_steps
from screens.StatusMainScreen import StatusMainScreen
from screens.SettingsScreen import SettingsScreen
@ -284,10 +283,10 @@ def the_user_opens_the_contact_settings():
_settingsScreen.open_contacts_settings()
def the_user_activates_wallet():
wallet_init_steps.the_user_activates_wallet()
_settingsScreen.activate_wallet_option()
def the_user_opens_the_wallet_settings():
wallet_init_steps.the_user_opens_the_wallet_settings()
_settingsScreen.open_wallet_settings()
def the_user_opens_the_profile_settings():
_settingsScreen.open_profile_settings()

View File

@ -15,18 +15,10 @@ def activate_and_open_wallet():
init_steps.the_user_activates_wallet_and_opens_the_wallet_section()
the_user_accepts_the_signing_phrase()
def the_user_activates_wallet():
settings_screen = SettingsScreen()
settings_screen.activate_wallet_option()
def the_user_opens_the_wallet_settings():
settings_screen = SettingsScreen()
settings_screen.open_wallet_settings()
def enable_wallet_section():
init_steps.the_user_opens_app_settings_screen()
the_user_activates_wallet()
def the_user_opens_wallet_screen():
main_screen = StatusMainScreen()
main_screen.open_wallet()