def test_valid_email_invalid_pw_valid_cpw(self): set_email_field(fake_valid_email()) set_password_field(invalid_password()) set_password_confirmation_field(valid_password()) set_sign_up_button() expected = "2 errors prohibited this user from being saved:\nPassword confirmation doesn't match Password\nPassword is too short (minimum is 8 characters)" self.verify_error_explanation(expected)
def test_valid_email_valid_pw_invalid_cpw(self): set_email_field(fake_valid_email()) set_password_field(valid_password()) set_password_confirmation_field(invalid_password()) set_sign_up_button() expected = "1 error prohibited this user from being saved:\nPassword confirmation doesn't match Password" self.verify_error_explanation(expected)
def test_valid_email_blank_pw_blank_cpw(self): set_email_field(fake_valid_email()) set_sign_up_button() expected = "1 error prohibited this user from being saved:\nPassword can't be blank" self.verify_error_explanation(expected)