Exemple #1
0
    def delete_product(self, mozwebqa, product):
        manage_products_pg = MozTrapManageProductsPage(mozwebqa)

        manage_products_pg.go_to_manage_products_page()
        manage_products_pg.filter_form.filter_by(lookup='name',
                                                 value=product['name'])
        manage_products_pg.delete_product(name=product['name'])
    def delete_product(self, base_url, selenium, product):
        manage_products_pg = MozTrapManageProductsPage(base_url, selenium)

        manage_products_pg.go_to_manage_products_page()
        manage_products_pg.filter_form.filter_by(lookup='name',
                                                 value=product['name'])
        manage_products_pg.delete_product(name=product['name'])
    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)
Exemple #5
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)
Exemple #7
0
    def delete_product(self, mozwebqa, product):
        manage_products_pg = MozTrapManageProductsPage(mozwebqa)

        manage_products_pg.go_to_manage_products_page()
        manage_products_pg.filter_form.filter_by(lookup='name', value=product['name'])
        manage_products_pg.delete_product(name=product['name'])
Exemple #8
0
    def delete_product(self, mozwebqa, product):
        manage_products_pg = MozTrapManageProductsPage(mozwebqa)

        manage_products_pg.go_to_manage_products_page()
        manage_products_pg.filter_products_by_name(name=product['name'])
        manage_products_pg.delete_product(name=product['name'])
Exemple #9
0
    def delete_product(self, base_url, selenium, product):
        manage_products_pg = MozTrapManageProductsPage(base_url, selenium)

        manage_products_pg.go_to_manage_products_page()
        manage_products_pg.filter_form.filter_by(lookup='name', value=product['name'])
        manage_products_pg.delete_product(name=product['name'])