Email: required, standard email address format => Help text : "e.g. first.last@domain.com"
Password: required, pattern = length [8, 42] + at least 1 upper and lower letter, at least 1 digit, at least 1 of %*! =>Help text : "e.g. BonjourAtous13@!"
WHEN I submit the form THEN I get an error message "Required field."
GIVEN an available profile and not yet signed in
WHEN I input matching email and compliant password THEN my access to "Tout koulèr malanjé" is granted and I get redirected to my profile.
WHEN I input unmatching email and compliant password or not THEN I get an error message "No profile found with given identifier and/or email."
WHEN I input matching email and non compliant password THEN I get an error message "Password does not match requirements."
GIVEN an unavailable profile
WHEN I input existing identifier and email and compliant password or not THEN I get an error message "No profile found with given identifier and/or email."
GIVEN a profile already signed-up
WHEN I input matching email and compliant password or not THEN I get an error message "You already have signed-in with given identifier and email."
Form labels and constraints
Examples:
Email: first.last@domain.com Password: BonjourAtous13
Acceptance criteria
GIVEN any required field left empty
GIVEN an available profile and not yet signed in
WHEN I input matching email and compliant password THEN my access to "Tout koulèr malanjé" is granted and I get redirected to my profile.
WHEN I input unmatching email and compliant password or not THEN I get an error message "No profile found with given identifier and/or email."
WHEN I input matching email and non compliant password THEN I get an error message "Password does not match requirements."
GIVEN an unavailable profile
GIVEN a profile already signed-up