def test_cancel_tos_link(self, driver):
     login(driver,
           user=settings.CAS_TOS_USER,
           password=settings.CAS_TOS_USER_PASSWORD)
     tos_page = LoginToSPage(driver, verify=True)
     # click the Cancel link and verify that you are redirected back to the OSF home page
     tos_page.cancel_link.click()
     assert LandingPage(driver, verify=True)
 def test_cancel_2fa_login(self, driver):
     login(driver,
           user=settings.CAS_2FA_USER,
           password=settings.CAS_2FA_USER_PASSWORD)
     two_factor_page = Login2FAPage(driver, verify=True)
     # click the Cancel link and verify that you are redirected back to the OSF home page
     two_factor_page.cancel_link.click()
     assert LandingPage(driver, verify=True)
Beispiel #3
0
 def page(self, driver):
     page = LandingPage(driver)
     page.goto()
     return page
Beispiel #4
0
 def test_logout_link(self, driver, page):
     page.navbar.user_dropdown.click()
     page.navbar.logout_link.click()
     LandingPage(driver, verify=True)
     assert 'goodbye' in driver.current_url
     login(driver)
Beispiel #5
0
 def test_osf_home_dropdown_link(self, page, driver):
     page.navbar.service_dropdown.click()
     page.navbar.home_link.click()
     LandingPage(driver, verify=True)
def landing_page(driver):
    landing_page = LandingPage(driver)
    landing_page.goto()
    return landing_page
 def test_osf_home_link(self, driver, login_page):
     login_page.osf_home_link.click()
     assert LandingPage(driver, verify=True)
 def test_landing_page(self, driver):
     LandingPage(driver, verify=True)
 def page(self, driver):
     page = LandingPage(driver)
     page.goto_with_reload()
     return page