2022-05-26 15:00:00 +00:00
|
|
|
from screens.StatusWelcomeScreen import StatusWelcomeScreen
|
2022-06-07 15:19:52 +00:00
|
|
|
from screens.StatusMainScreen import StatusMainScreen
|
2022-05-26 15:00:00 +00:00
|
|
|
|
2022-06-07 23:37:11 +00:00
|
|
|
_welcomeScreen = StatusWelcomeScreen()
|
|
|
|
|
2022-05-26 15:00:00 +00:00
|
|
|
|
2022-06-07 23:37:11 +00:00
|
|
|
@Given("A first time user lands on the status desktop and generates new key")
|
2022-05-26 15:00:00 +00:00
|
|
|
def step(context):
|
2022-06-01 02:43:53 +00:00
|
|
|
_welcomeScreen.agree_terms_conditions_and_generate_new_key()
|
2022-05-26 15:00:00 +00:00
|
|
|
|
2022-06-07 23:37:11 +00:00
|
|
|
|
2022-06-16 01:46:45 +00:00
|
|
|
@When("user signs up with username |any| and password |any|")
|
2022-05-26 15:00:00 +00:00
|
|
|
def step(context, username, password):
|
2022-06-01 02:43:53 +00:00
|
|
|
_welcomeScreen.input_username_and_password_and_finalize_sign_up(username, password)
|
|
|
|
|
2022-06-07 23:37:11 +00:00
|
|
|
|
|
|
|
@When("the user inputs username |any|")
|
2022-06-01 02:43:53 +00:00
|
|
|
def step(context, username):
|
|
|
|
_welcomeScreen.input_username(username)
|
|
|
|
|
2022-05-26 15:00:00 +00:00
|
|
|
|
|
|
|
@Then("the user lands on the signed in app")
|
|
|
|
def step(context):
|
2022-06-07 23:37:11 +00:00
|
|
|
StatusMainScreen()
|