mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-17 18:11:54 +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
40 lines
1.3 KiB
Python
40 lines
1.3 KiB
Python
from screens.StatusWelcomeScreen import StatusWelcomeScreen
|
|
from screens.StatusMainScreen import StatusMainScreen
|
|
|
|
_welcomeScreen = StatusWelcomeScreen()
|
|
|
|
|
|
@Given("A first time user lands on the status desktop and generates new key")
|
|
def step(context):
|
|
erase_directory(context.userData["status_data_folder_path"])
|
|
startApplication(context.userData["aut_name"])
|
|
_welcomeScreen.agree_terms_conditions_and_generate_new_key()
|
|
|
|
|
|
@Given("A first time user lands on the status desktop and navigates to import seed phrase")
|
|
def step(context):
|
|
erase_directory(context.userData["status_data_folder_path"])
|
|
startApplication(context.userData["aut_name"])
|
|
_welcomeScreen.agree_terms_conditions_and_navigate_to_import_seed_phrase()
|
|
|
|
|
|
@When("user signs up with username |any| and password |any|")
|
|
def step(context, username, password):
|
|
_welcomeScreen.input_username_and_password_and_finalize_sign_up(username, password)
|
|
|
|
|
|
@When("the user inputs username |any|")
|
|
def step(context, username):
|
|
_welcomeScreen.input_username(username)
|
|
|
|
|
|
@Then("the user lands on the signed in app")
|
|
def step(context):
|
|
StatusMainScreen()
|
|
|
|
@When("The user inputs |any| seed phrases")
|
|
def step(context, seedPhraseAmount):
|
|
table = context.table
|
|
for row in table[1:]:
|
|
_welcomeScreen.input_seed_phrase(row[0], seedPhraseAmount, row[1])
|