mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-11 06:47:01 +00:00
fa265b5e79
- Created `bdd_hooks` that contain the sing up steps just only once in the feature start and the needed start steps depending on the test case. - Updated feature files removing sign up steps and given/when/then reorganization. - Done some cleanups and reorganization in `communitySteps.py` and `searchSteps.py`. Closes #7955
20 lines
575 B
Python
20 lines
575 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/"))
|
|
|
|
from steps.startupSteps import context_init
|
|
|
|
@OnScenarioStart
|
|
def hook(context):
|
|
context_init(context)
|
|
|
|
@OnScenarioEnd
|
|
def hook(context):
|
|
currentApplicationContext().detach()
|
|
snooze(_app_closure_timeout)
|
|
|
|
@OnStepEnd
|
|
def hook(context):
|
|
context.userData["step_name"] = context._data["text"] |