Ejemplo n.º 1
0
 def test_valid_email_valid_pw_valid_cpw(self):
     create_valid_account()
     self.assertNotEqual(
         self.chk_url,
         get_current_url(),
         msg='FAILED: url = {0} - did not change after login'.format(
             get_current_url()))
     test_print('Successfully verified sign up', flash='!')
     stop()  # cleanup step
Ejemplo n.º 2
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
Ejemplo n.º 3
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
Ejemplo n.º 4
0
 def setUpClass(self):
     self.chk_url = 'https://avant-qa-screening.herokuapp.com/users/sign_in'
     go_to(self.chk_url)
     set_sign_up_link()
     self.valid_email, self.valid_pw = create_valid_account()
     stop()
Ejemplo n.º 5
0
 def test_valid_email_valid_pw_valid_cpw(self):
     create_valid_account()
     self.assertNotEqual(self.chk_url, get_current_url(),
                      msg='FAILED: url = {0} - did not change after login'.format(get_current_url()))
     test_print('Successfully verified sign up', flash='!')
     stop() # cleanup step
Ejemplo n.º 6
0
 def setUpClass(self):
     go_to('https://avant-qa-screening.herokuapp.com/users/sign_in')
     set_sign_up_link()
     self.valid_email, self.valid_pw = create_valid_account()
     self.h1 = get_h1()
     set_edit_profile_link()
Ejemplo n.º 7
0
 def setUpClass(self):
     go_to('https://avant-qa-screening.herokuapp.com/users/sign_in')
     set_sign_up_link()
     self.valid_email, self.valid_pw = create_valid_account()
     self.h1 = get_h1()
Ejemplo n.º 8
0
 def setUpClass(self):
     self.chk_url = 'https://avant-qa-screening.herokuapp.com/users/sign_in'
     go_to(self.chk_url)
     set_sign_up_link()
     self.valid_email, self.valid_pw = create_valid_account()
     stop()