예제 #1
0
 def test_forgot_password_sign_up_link(self):
     set_forgot_your_password()
     set_sign_up_link()
     expected_signup_url ='https://avant-qa-screening.herokuapp.com/users/sign_up'
     actual_url = get_current_url()
     self.assertEqual(expected_signup_url, actual_url,
                  msg='FAILED: expected login url = {0}, got url = {1}'.format(expected_signup_url, actual_url))
     test_print('Successfully verified the "Sign up" link', flash='!')
     go_back()
예제 #2
0
 def verify_landing_dash_page_links(self, h1_index, expected_link_url,
                                    back=True):
     # used in both landing and dashboard verification
     link = self.h1.split(' | ')[h1_index]
     wait_click_url(ps='clicking "{0}" link'.format(link), tag='a', text=link)
     actual = get_current_url()
     self.assertIn(expected_link_url, actual,
                      msg='FAILED: expected "{0}" link to open url = {1}, got url = {2}'.format(link, expected_link_url, actual))
     test_print('Successfully opened the "{0}" link'.format(link), flash='!')
     if back:
         go_back() # cleanup step
예제 #3
0
 def test_forgot_password_sign_up_link(self):
     set_forgot_your_password()
     set_sign_up_link()
     expected_signup_url = 'https://avant-qa-screening.herokuapp.com/users/sign_up'
     actual_url = get_current_url()
     self.assertEqual(
         expected_signup_url,
         actual_url,
         msg='FAILED: expected login url = {0}, got url = {1}'.format(
             expected_signup_url, actual_url))
     test_print('Successfully verified the "Sign up" link', flash='!')
     go_back()