예제 #1
0
 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)
예제 #2
0
 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)
예제 #3
0
 def test_blank_email_valid_pw_valid_cpw(self):
     pw = valid_password()
     set_password_field(pw)
     set_password_confirmation_field(pw)
     set_sign_up_button()
     expected = "1 error prohibited this user from being saved:\nEmail can't be blank"
     self.verify_error_explanation(expected)
예제 #4
0
 def test_blank_email_invalid_pw_invalid_cpw(self):
     pw = invalid_password()
     set_password_field(pw)
     set_password_confirmation_field(pw)
     set_sign_up_button()
     expected = "2 errors prohibited this user from being saved:\nEmail can't be blank\nPassword is too short (minimum is 8 characters)"
     self.verify_error_explanation(expected)
예제 #5
0
 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)
예제 #6
0
 def test_invalid_email_invalid_pw_invalid_cpw(self):
     pw = invalid_password()
     set_password_field(pw)
     set_password_confirmation_field(pw)
     set_email_field(invalid_email())
     set_sign_up_button()
     self.verify_invalid_email()
예제 #7
0
 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)
예제 #8
0
 def test_blank_email_invalid_pw_invalid_cpw(self):
     pw = invalid_password()
     set_password_field(pw)
     set_password_confirmation_field(pw)
     set_sign_up_button()
     expected = "2 errors prohibited this user from being saved:\nEmail can't be blank\nPassword is too short (minimum is 8 characters)"
     self.verify_error_explanation(expected)
예제 #9
0
 def test_blank_email_valid_pw_valid_cpw(self):
     pw = valid_password()
     set_password_field(pw)
     set_password_confirmation_field(pw)
     set_sign_up_button()
     expected = "1 error prohibited this user from being saved:\nEmail can't be blank"
     self.verify_error_explanation(expected)
예제 #10
0
 def test_invalid_email_invalid_pw_invalid_cpw(self):
     pw = invalid_password()
     set_password_field(pw)
     set_password_confirmation_field(pw)
     set_email_field(invalid_email())
     set_sign_up_button()
     self.verify_invalid_email()
예제 #11
0
 def test_existing_user(self):
     email, pw = create_valid_account()
     stop() # cleanup step
     go_to(self.chk_url)
     set_email_field(email)
     set_password_field(pw)
     set_password_confirmation_field(pw)
     set_sign_up_button()
     expected = "1 error prohibited this user from being saved:\nEmail has already been taken"
     self.verify_error_explanation(expected)
     stop() # cleanup step
예제 #12
0
 def test_existing_user(self):
     email, pw = create_valid_account()
     stop()  # cleanup step
     go_to(self.chk_url)
     set_email_field(email)
     set_password_field(pw)
     set_password_confirmation_field(pw)
     set_sign_up_button()
     expected = "1 error prohibited this user from being saved:\nEmail has already been taken"
     self.verify_error_explanation(expected)
     stop()  # cleanup step
예제 #13
0
 def test_blank_email_blank_pw_invalid_cpw(self):
     set_password_confirmation_field(invalid_password())
     set_sign_up_button()
     expected = "3 errors prohibited this user from being saved:\nEmail can't be blank\nPassword can't be blank\nPassword confirmation doesn't match Password"
     self.verify_error_explanation(expected)
예제 #14
0
 def test_invalid_email_blank_pw_blank_cpw(self):
     set_email_field(invalid_email())
     set_sign_up_button()
     self.verify_invalid_email()
예제 #15
0
 def test_invalid_email_blank_pw_valid_cpw(self):
     set_password_confirmation_field(valid_password())
     set_email_field(invalid_email())
     set_sign_up_button()
     self.verify_invalid_email()
예제 #16
0
 def test_invalid_email_blank_pw_blank_cpw(self):
     set_email_field(invalid_email())
     set_sign_up_button()
     self.verify_invalid_email()
예제 #17
0
 def test_blank_email_blank_pw_blank_cpw(self):
     set_sign_up_button()
     expected = "2 errors prohibited this user from being saved:\nEmail can't be blank\nPassword can't be blank"
     self.verify_error_explanation(expected)
예제 #18
0
 def test_blank_email_blank_pw_invalid_cpw(self):
     set_password_confirmation_field(invalid_password())
     set_sign_up_button()
     expected = "3 errors prohibited this user from being saved:\nEmail can't be blank\nPassword can't be blank\nPassword confirmation doesn't match Password"
     self.verify_error_explanation(expected)
예제 #19
0
 def test_blank_email_blank_pw_blank_cpw(self):
     set_sign_up_button()
     expected = "2 errors prohibited this user from being saved:\nEmail can't be blank\nPassword can't be blank"
     self.verify_error_explanation(expected)
예제 #20
0
 def test_invalid_email_blank_pw_valid_cpw(self):
     set_password_confirmation_field(valid_password())
     set_email_field(invalid_email())
     set_sign_up_button()
     self.verify_invalid_email()
예제 #21
0
 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)
예제 #22
0
 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)