mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-25 22:10:12 +00:00
7b4802db83
- Created new test case with basic create group chat scenario. - Added specific data folder for `tst_groupChat`. - Removed deprecated data folder. - Added dynamic login (depending on the account). - Added global account information in `suite_status/data` folder. - Added new group chat validations, title, history texts, members added and send chat message. - Replaced some ids by objectNames. - Some improvements in `names.py`. - Onboarding objects refactor. Fixes #6444
25 lines
739 B
Python
25 lines
739 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__), "../../../src/"))
|
|
|
|
from utils.FileManager import *
|
|
|
|
_status_desktop_app_name = "nim_status_client"
|
|
_status_data_folder_path = "../../../../../Status/data"
|
|
_status_qt_path = "../../../../../Status/qt"
|
|
_app_closure_timeout = 2 #[seconds]
|
|
|
|
@OnScenarioStart
|
|
def hook(context):
|
|
erase_directory(_status_qt_path)
|
|
context.userData = {}
|
|
context.userData["aut_name"] = _status_desktop_app_name
|
|
context.userData["status_data_folder_path"] = _status_data_folder_path
|
|
|
|
@OnScenarioEnd
|
|
def hook(context):
|
|
currentApplicationContext().detach()
|
|
snooze(_app_closure_timeout)
|
|
|