def test_login_link(self):
     set_log_in_link()
     expected_login_url = 'https://avant-qa-screening.herokuapp.com/users/sign_in'
     actual_url = get_current_url()
     self.assertEqual(expected_login_url, actual_url,
                  msg='FAILED: expected login url = {0}, got url = {1}'.format(expected_login_url, actual_url))
     test_print('Successfully verified the "Log in" link', flash='!')
     stop() # cleanup step
Esempio n. 2
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
Esempio n. 3
0
 def test_login_link(self):
     set_log_in_link()
     expected_login_url = 'https://avant-qa-screening.herokuapp.com/users/sign_in'
     actual_url = get_current_url()
     self.assertEqual(
         expected_login_url,
         actual_url,
         msg='FAILED: expected login url = {0}, got url = {1}'.format(
             expected_login_url, actual_url))
     test_print('Successfully verified the "Log in" link', flash='!')
     stop()  # cleanup step
Esempio n. 4
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
 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
 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()
 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
Esempio 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()