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
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'
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
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
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('/', '-')