예제 #1
0
def test_empty_tag_roll(web_server: str, browser: DriverAPI,
                        dbsession: Session):
    """We can render empty tag list."""

    # Direct Splinter browser to the website
    browser.visit(web_server + "/blog/tag/xxx")

    assert browser.is_element_present_by_css("#blog-no-posts")
예제 #2
0
파일: utils.py 프로젝트: debonzi/websauna
def logout(web_server:str, browser:DriverAPI):
    """Log out the current user from the test browser."""
    browser.find_by_css("#nav-logout").click()
    assert browser.is_element_present_by_css("#msg-logged-out")
예제 #3
0
def logout(web_server: str, browser: DriverAPI):
    """Log out the current user from the test browser."""
    browser.find_by_css("#nav-logout").click()
    assert browser.is_element_present_by_css("#msg-logged-out")