mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-12 07:14:37 +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
46 lines
1.6 KiB
Python
46 lines
1.6 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
# ******************************************************************************
|
|
# Status.im
|
|
# *****************************************************************************/
|
|
# /**
|
|
# * \file steps.py
|
|
# *
|
|
# * \test Status Desktop - Login
|
|
# * \date February 2022
|
|
# * \brief This file contains snippets of script code to be executed as the .feature
|
|
# * file is processed.
|
|
# * The decorators Given/When/Then/Step can be used to associate a script snippet
|
|
# * with a pattern which is matched against the steps being executed.
|
|
# *****************************************************************************
|
|
from common.Common import *
|
|
import time
|
|
|
|
@Given("the user starts the application with a specific data folder |any|")
|
|
def step(context, data):
|
|
waitFor(lambda: currentApplicationContext().detach(), 500)
|
|
time.sleep(5)
|
|
clear_directory(context.userData["status_data_folder_path"])
|
|
copy_directory(data, context.userData["status_data_folder_path"])
|
|
startApplication(context.userData["aut_name"])
|
|
|
|
@When("the user restarts the app")
|
|
def step(context):
|
|
waitFor(lambda: currentApplicationContext().detach(), 500)
|
|
time.sleep(5)
|
|
startApplication(context.userData["aut_name"])
|
|
|
|
@When("user inputs the following |any| with ui-component |any|")
|
|
def step(context, text, obj):
|
|
input_text(text, obj)
|
|
|
|
|
|
@When("user clicks on the following ui-component |any|")
|
|
def step(context, obj):
|
|
click_on_an_object(obj)
|
|
|
|
|
|
@Then("the following ui-component |any| is not enabled")
|
|
def step(context, obj):
|
|
object_not_enabled(obj)
|
|
|