2023-05-04 16:18:19 +00:00
|
|
|
from pathlib import Path
|
|
|
|
import sys
|
|
|
|
from screens.StatusWelcomeScreen import CreatePasswordView
|
|
|
|
|
|
|
|
_welcome_screen = CreatePasswordView()
|
|
|
|
|
|
|
|
|
|
|
|
@When('the user inputs the password \"|any|\"')
|
|
|
|
def step(context, password):
|
|
|
|
_welcome_screen.new_password = str(password)
|
2022-08-22 11:35:58 +00:00
|
|
|
|
|
|
|
|
2022-11-17 14:06:36 +00:00
|
|
|
@Then("the password strength indicator is \"|any|\"")
|
2022-08-22 11:35:58 +00:00
|
|
|
def step(context, strength):
|
|
|
|
_welcomeScreen.validate_password_strength(strength)
|