Ejemplo n.º 1
0
    def test_opening_category_pages_from_categories_menu(self, mozwebqa):
        """Open the first 3 category pages and check the first 3 apps on those pages."""

        home_page = Home(mozwebqa)
        home_page.go_to_homepage()

        categories = home_page.categories.items
        # only check the first three categories
        for c in range(3):
            home_page.open_categories_menu()
            category = categories[c]
            category_name = category.name
            category_page = category.click_category()
            Assert.equal(category_name.title(), category_page.category_title)
            Assert.true(category_page.is_the_current_page)
            apps = category_page.apps
            Assert.true(len(apps) > 0)
            Assert.true(category_page.is_new_popular_tabs_visible)
            Assert.true(category_page.popular_tab_class == 'active')

            # only check the first three apps in the category
            for a in range(3):
                app = apps[a]
                Assert.true(app.is_name_visible)
                Assert.true(app.is_icon_visible)
                Assert.true(app.is_rating_visible)
                Assert.true(app.is_install_visible)
Ejemplo n.º 2
0
    def test_opening_category_pages_from_categories_menu(self, mozwebqa):
        """Open the first 3 category pages and check the first 3 apps on those pages."""

        home_page = Home(mozwebqa)
        home_page.go_to_homepage()

        categories = home_page.categories.items
        # only check the first three categories
        for c in range(3):
            home_page.open_categories_menu()
            category = categories[c]
            category_name = category.name
            category_page = category.click_category()
            Assert.equal(category_name.title(), category_page.category_title)
            Assert.true(category_page.is_the_current_page)
            apps = category_page.apps
            Assert.true(len(apps) > 0)
            Assert.true(category_page.is_new_popular_tabs_visible)
            Assert.true(category_page.popular_tab_class == 'active')

            # only check the first three apps in the category
            for a in range(3):
                app = apps[a]
                Assert.true(app.is_name_visible)
                Assert.true(app.is_icon_visible)
                Assert.true(app.is_rating_visible)
                Assert.true(app.is_install_visible)
Ejemplo n.º 3
0
    def test_that_verifies_categories_menu(self, mozwebqa):

        home_page = Home(mozwebqa)
        home_page.go_to_homepage()

        Assert.equal(home_page.categories.title, 'Categories')

        home_page.open_categories_menu()
        Assert.greater(len(home_page.categories.items), 0)
Ejemplo n.º 4
0
    def test_that_verifies_categories_menu(self, mozwebqa):

        home_page = Home(mozwebqa)
        home_page.go_to_homepage()

        Assert.equal(home_page.categories.title, 'Categories')

        home_page.open_categories_menu()
        Assert.greater(len(home_page.categories.items), 0)