Beispiel #1
0
    def test_that_items_menu_fly_out_while_hovering(self, mozwebqa):

        # I've adapted the test to check open/closed for all menu items
        home_page = Home(mozwebqa)

        for menu in self.expected_header_menus:
            menu_item = home_page.header.site_navigation_menu(menu.name)
            menu_item.hover()
            assert menu_item.is_menu_dropdown_visible
            home_page.hover_over_addons_home_title()
            assert not menu_item.is_menu_dropdown_visible
    def test_that_items_menu_fly_out_while_hovering(self, mozwebqa):

        #I've adapted the test to check open/closed for all menu items
        home_page = Home(mozwebqa)

        for menu in self.expected_header_menus:
            menu_item = home_page.header.site_navigation_menu(menu.name)
            menu_item.hover()
            Assert.true(menu_item.is_menu_dropdown_visible)
            home_page.hover_over_addons_home_title()
            Assert.false(menu_item.is_menu_dropdown_visible)
    def test_that_items_menu_fly_out_while_hovering(self, base_url, selenium):

        # I've adapted the test to check open/closed for all menu items
        home_page = Home(base_url, selenium)

        for menu in self.expected_header_menus:
            menu_item = home_page.header.site_navigation_menu(menu.name)
            menu_item.hover()
            assert menu_item.is_menu_dropdown_visible
            home_page.hover_over_addons_home_title()
            assert not menu_item.is_menu_dropdown_visible
Beispiel #4
0
    def test_that_items_menu_fly_out_while_hovering(self, mozwebqa):
        """
        Test for Litmus 25754.
        https://litmus.mozilla.org/show_test.cgi?searchType=by_id&id=25754
        """
        #I've adapted the test to check open/closed for all menu items
        home_page = Home(mozwebqa)

        for menu in self.expected_header_menus:
            menu_item = home_page.header.site_navigation_menu(menu.name)
            menu_item.hover()
            Assert.true(menu_item.is_menu_dropdown_visible)
            home_page.hover_over_addons_home_title()
            Assert.false(menu_item.is_menu_dropdown_visible)
Beispiel #5
0
    def test_that_items_menu_fly_out_while_hovering(self, mozwebqa):
        """
        Test for Litmus 25754.
        https://litmus.mozilla.org/show_test.cgi?searchType=by_id&id=25754
        """
        #I've adapted the test to check open/closed for all menu items
        home_page = Home(mozwebqa)

        for menu in self.expected_header_menus:
            menu_item = home_page.header.site_navigation_menu(menu.name)
            menu_item.hover()
            Assert.true(menu_item.is_menu_dropdown_visible)
            home_page.hover_over_addons_home_title()
            Assert.false(menu_item.is_menu_dropdown_visible)