예제 #1
0
def test_trunner_link_logout_user(browser):
    """Test that Trunner_link is clickable and redirect user to the welcome page (if user is logout)"""
    about_page = AboutPage(browser)
    about_page.load()
    about_page.trunner_lnk_click()
    assert browser.current_url == locators.WelcomePageLocators.WELCOME_URL
예제 #2
0
def test_trunner_link_logon_user(browser, login, close):
    """Test that Trunner_link is clickable and redirect user to the Suites(if user is logon)"""
    about_page = AboutPage(browser)
    about_page.load()
    about_page.trunner_lnk_click()
    assert browser.current_url == locators.SuitesPageLocators.SUITES_URL