def test_make_public(self, driver, project_page):
     # Set project to public
     project_page.make_public_link.click()
     project_page.confirm_privacy_change_link.click()
     assert project_page.make_private_link.present()
     # Confirm logged out user can now see project
     logout(driver)
     project_page.goto()
     login(driver)
Exemplo n.º 2
0
 def test_make_public(self, driver, project_page):
     # Set project to public
     WebDriverWait(driver, 5).until(
         EC.element_to_be_clickable(
             (By.XPATH, '//a[contains(text(), "Make Public")]')))
     project_page.make_public_link.click()
     project_page.confirm_privacy_change_link.click()
     assert project_page.make_private_link.present()
     # Confirm logged out user can now see project
     logout(driver)
     project_page.goto()
     login(driver)
Exemplo n.º 3
0
def default_logout(driver):
    logout(driver)
Exemplo n.º 4
0
def logout():
    from pages.login import logout
    return logout()