def test_that_user_can_filter_product_by_name_without_mouse(self, mozwebqa_logged_in, product):
        manage_products_pg = MozTrapManageProductsPage(mozwebqa_logged_in)
        manage_products_pg.go_to_manage_products_page()

        filter_item = manage_products_pg.filter_form.filter_without_mouse_by(lookup='name', value='Another Product')

        Assert.false(manage_products_pg.is_product_present(product))

        filter_item.remove_filter()
        manage_products_pg.filter_form.filter_without_mouse_by(lookup='name', value=product['name'])

        Assert.true(manage_products_pg.is_product_present(product))
    def test_that_user_can_filter_product_by_name(self, mozwebqa, login, product):
        manage_products_pg = MozTrapManageProductsPage(mozwebqa)
        manage_products_pg.go_to_manage_products_page()

        filter_item = manage_products_pg.filter_form.filter_by(lookup='name', value='Another Product')

        assert not manage_products_pg.is_product_present(product)

        filter_item.remove_filter()
        manage_products_pg.filter_form.filter_by(lookup='name', value=product['name'])

        assert manage_products_pg.is_product_present(product)
예제 #3
0
    def test_that_user_can_filter_product_by_name_without_mouse(
            self, mozwebqa_logged_in, product):
        manage_products_pg = MozTrapManageProductsPage(mozwebqa_logged_in)
        manage_products_pg.go_to_manage_products_page()

        filter_item = manage_products_pg.filter_form.filter_without_mouse_by(
            lookup='name', value='Another Product')

        Assert.false(manage_products_pg.is_product_present(product))

        filter_item.remove_filter()
        manage_products_pg.filter_form.filter_without_mouse_by(
            lookup='name', value=product['name'])

        Assert.true(manage_products_pg.is_product_present(product))
    def test_that_user_can_filter_product_by_name_without_mouse(
            self, base_url, selenium, login, product):
        manage_products_pg = MozTrapManageProductsPage(base_url, selenium)
        manage_products_pg.go_to_manage_products_page()

        filter_item = manage_products_pg.filter_form.filter_without_mouse_by(
            lookup='name', value='Another Product')

        assert not manage_products_pg.is_product_present(product)

        filter_item.remove_filter()
        manage_products_pg.filter_form.filter_without_mouse_by(
            lookup='name', value=product['name'])

        assert manage_products_pg.is_product_present(product)