예제 #1
0
def test_family_navigation_adjunct_menu(slug, locale, base_url, selenium):
    locale = locale or 'en-US'
    page = FirefoxPage(selenium, base_url, locale, slug=slug).open()
    page.family_navigation.open_adjunct_menu()
    assert page.family_navigation.is_adjunct_menu_displayed
예제 #2
0
def test_family_navigation_active_nav(slug, locale, base_url, selenium):
    locale = locale or 'en-US'
    page = FirefoxPage(selenium, base_url, locale, slug=slug).open()
    assert page.family_navigation.active_primary_nav_id == 'desktop'
예제 #3
0
def test_fxos_navigation_adjunct_menu(slug, base_url, selenium):
    page = FirefoxPage(selenium, base_url, slug=slug).open()
    page.fxos_navigation.open_adjunct_menu()
    assert page.fxos_navigation.is_adjunct_menu_displayed
예제 #4
0
def test_family_navigation_active_nav(slug, base_url, selenium):
    page = FirefoxPage(selenium, base_url, slug=slug).open()
    assert page.family_navigation.active_primary_nav_id == slug
예제 #5
0
def test_fxos_navigation_active_nav(slug, base_url, selenium):
    page = FirefoxPage(selenium, base_url, slug=slug).open()
    assert page.fxos_navigation.active_primary_nav_id == slug.replace('/', '-')