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-01 02:43:53 +00:00
|
|
|
_welcomeScreen = StatusWelcomeScreen()
|
2022-05-26 15:00:00 +00:00
|
|
|
|
|
|
|
@Given("A first time user lands on the status desktop and generates new key")
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
@When("user inputs username |any| and password |any|")
|
|
|
|
def step(context, username, password):
|
2022-06-01 02:43:53 +00:00
|
|
|
_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)
|
|
|
|
|
2022-05-26 15:00:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
@Then("the user lands on the signed in app")
|
|
|
|
def step(context):
|
2022-06-07 15:19:52 +00:00
|
|
|
StatusMainScreen()
|