mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-08 12:46:08 +00:00
ec8c64d7a1
- Fixed test scenarios broken due to new user profile design. - Added new verifications in social links: github, youtube, discord and telegram. - Scenario statements reorganization. Fixes #8281
21 lines
655 B
Python
21 lines
655 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.commonInitSteps import context_init
|
|
|
|
@OnScenarioStart
|
|
def hook(context):
|
|
context_init(context, testSettings)
|
|
context.userData["scenario_name"] = context._data["title"]
|
|
|
|
@OnScenarioEnd
|
|
def hook(context):
|
|
currentApplicationContext().detach()
|
|
snooze(_app_closure_timeout)
|
|
|
|
@OnStepEnd
|
|
def hook(context):
|
|
context.userData["step_name"] = context._data["text"] |