def delete_suite(self, mozwebqa, suite, delete_product=False): manage_suites_pg = MozTrapManageSuitesPage(mozwebqa) manage_suites_pg.go_to_manage_suites_page() manage_suites_pg.filter_suites_by_name(name=suite['name']) manage_suites_pg.delete_suite(name=suite['name']) if delete_product: self.delete_product(mozwebqa, product=suite['product'])
def test_that_user_can_create_and_delete_suite(self, mozwebqa_logged_in): manage_suites_pg = MozTrapManageSuitesPage(mozwebqa_logged_in) suite = self.create_suite(mozwebqa_logged_in) manage_suites_pg.filter_suites_by_name(name=suite["name"]) Assert.true(manage_suites_pg.is_element_present(suite["locator"])) manage_suites_pg.delete_suite(name=suite["name"]) Assert.false(manage_suites_pg.is_element_present(suite["locator"])) self.delete_product(mozwebqa_logged_in, product=suite["product"])