mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-24 21:39:24 +00:00
ed42928f0b
Renamed `startupSteps.py` to `commonInitSteps.py`. Cleanup `Processes` folder (not used). Moved `walletInitSteps.py` inside the own suite steps. Added files flow diagram. Closes #8353
30 lines
903 B
Python
30 lines
903 B
Python
# -*- coding: utf-8 -*-
|
|
# This file contains hook functions to run as the .feature file is executed
|
|
|
|
sys.path.append(os.path.join(os.path.dirname(__file__), "../../../testSuites/global_shared/"))
|
|
sys.path.append(os.path.join(os.path.dirname(__file__), "../../../src/"))
|
|
|
|
import steps.commonInitSteps as init_steps
|
|
|
|
# Global properties for the specific feature
|
|
_user = "tester123"
|
|
_onboarding_new_psw_input = "onboarding_newPsw_Input"
|
|
|
|
@OnFeatureStart
|
|
def hook(context):
|
|
init_steps.context_init(context)
|
|
init_steps.a_first_time_user_lands_on_and_generates_new_key(context)
|
|
|
|
@OnFeatureEnd
|
|
def hook(context):
|
|
currentApplicationContext().detach()
|
|
snooze(_app_closure_timeout)
|
|
|
|
@OnStepEnd
|
|
def hook(context):
|
|
context.userData["step_name"] = context._data["text"]
|
|
|
|
@OnScenarioEnd
|
|
def hook(context):
|
|
# Scenario cleanup
|
|
init_steps.the_user_navigates_back_to_user_profile_page() |