Exemplo n.º 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
Exemplo n.º 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'
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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('/', '-')