def test_that_user_can_clone_version(self, mozwebqa_logged_in, product): manage_versions_pg = MozTrapManageVersionsPage(mozwebqa_logged_in) version = self.create_version(mozwebqa_logged_in, product) manage_versions_pg.filter_form.filter_by(lookup='version', value=version['name']) cloned_version = manage_versions_pg.clone_version(name=version['name'], product_name=version['product']['name']) Assert.true(manage_versions_pg.is_element_present(*cloned_version['manage_locator'])) manage_versions_pg.delete_version(name=cloned_version['name'], product_name=cloned_version['product_name']) Assert.false(manage_versions_pg.is_element_present(*cloned_version['manage_locator']))
def test_that_user_can_clone_version(self, mozwebqa, login, product): manage_versions_pg = MozTrapManageVersionsPage(mozwebqa) version = self.create_version(mozwebqa, product) manage_versions_pg.filter_form.filter_by(lookup='version', value=version['name']) cloned_version = manage_versions_pg.clone_version(name=version['name'], product_name=version['product']['name']) Assert.true(manage_versions_pg.is_element_present(*cloned_version['manage_locator'])) manage_versions_pg.delete_version(name=cloned_version['name'], product_name=cloned_version['product_name']) Assert.false(manage_versions_pg.is_element_present(*cloned_version['manage_locator']))
def test_that_user_can_clone_version(self, base_url, selenium, login, product): manage_versions_pg = MozTrapManageVersionsPage(base_url, selenium) version = self.create_version(base_url, selenium, product) manage_versions_pg.filter_form.filter_by(lookup='version', value=version['name']) cloned_version = manage_versions_pg.clone_version(name=version['name'], product_name=version['product']['name']) assert manage_versions_pg.is_element_present(*cloned_version['manage_locator']) manage_versions_pg.delete_version(name=cloned_version['name'], product_name=cloned_version['product_name']) assert not manage_versions_pg.is_element_present(*cloned_version['manage_locator'])
def test_that_user_can_clone_version(self, base_url, selenium, login, product): manage_versions_pg = MozTrapManageVersionsPage(base_url, selenium) version = self.create_version(base_url, selenium, product) manage_versions_pg.filter_form.filter_by(lookup='version', value=version['name']) cloned_version = manage_versions_pg.clone_version( name=version['name'], product_name=version['product']['name']) assert manage_versions_pg.is_element_present( *cloned_version['manage_locator']) manage_versions_pg.delete_version( name=cloned_version['name'], product_name=cloned_version['product_name']) assert not manage_versions_pg.is_element_present( *cloned_version['manage_locator'])
def test_that_user_can_clone_version(self, mozwebqa_logged_in): manage_versions_pg = MozTrapManageVersionsPage(mozwebqa_logged_in) version = self.create_version(mozwebqa_logged_in) manage_versions_pg.filter_versions_by_name(name=version['name']) cloned_version = manage_versions_pg.clone_version( name=version['name'], product_name=version['product']['name']) Assert.true( manage_versions_pg.is_element_present( *cloned_version['manage_locator'])) manage_versions_pg.delete_version( name=cloned_version['name'], product_name=cloned_version['product_name']) Assert.false( manage_versions_pg.is_element_present( *cloned_version['manage_locator'])) self.delete_version(mozwebqa_logged_in, version, delete_product=True)