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)
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)
def default_logout(driver): logout(driver)
def logout(): from pages.login import logout return logout()