Skip to content

Commit e12dfb4

Browse files
ACQE-8274: [ATLH] Categories. Initial list of tests which do not delete categories
- Added category deletion code
1 parent b9f5d6f commit e12dfb4

File tree

23 files changed

+29
-9
lines changed

23 files changed

+29
-9
lines changed

app/code/Magento/Bundle/Test/Mftf/Test/AdminAddBundleProductToCartFromWishListPageTest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
<deleteData createDataKey="createProduct" stepKey="deleteProduct"/>
6868
<!-- Log out -->
6969
<comment userInput="Log out" stepKey="commentLogOut"/>
70+
<deleteData createDataKey="createCategory" stepKey="deletecreateCategory"/>
7071
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
7172
</after>
7273
<!-- Login to the Storefront as created customer -->

app/code/Magento/Bundle/Test/Mftf/Test/AdminAssociateBundleProductToWebsitesTest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
<actionGroup ref="NavigateToAndResetProductGridToDefaultViewActionGroup" stepKey="resetProductGridFilter"/>
8888

8989
<!-- Admin logout -->
90+
<deleteData createDataKey="createCategory" stepKey="deletecreateCategory"/>
9091
<actionGroup ref="AdminLogoutActionGroup" stepKey="adminLogout"/>
9192
</after>
9293

app/code/Magento/Bundle/Test/Mftf/Test/StorefrontBundleProductShownInCategoryListAndGridTest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
</before>
3333
<after>
3434
<!--Logging out-->
35+
<actionGroup ref="DeleteCategoryActionGroup" stepKey="deleteCategory"/>
3536
<actionGroup ref="AdminLogoutActionGroup" stepKey="amOnLogoutPage"/>
3637
<deleteData createDataKey="simpleProduct1" stepKey="deleteSimpleProduct1"/>
3738
<deleteData createDataKey="simpleProduct2" stepKey="deleteSimpleProduct2"/>

app/code/Magento/Bundle/Test/Mftf/Test/StorefrontCheckPriceForDynamicBundleProductWithMixedDiscountsTest.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,9 @@
173173
<deleteData createDataKey="sixthProduct" stepKey="deleteSixthProduct"/>
174174
<deleteData createDataKey="createBundleProduct" stepKey="deleteBundleProduct"/>
175175
<actionGroup ref="AdminCatalogPriceRuleDeleteAllActionGroup" stepKey="deleteCatalogPriceRules"/>
176+
<deleteData createDataKey="category1" stepKey="deletecategory1"/>
177+
<deleteData createDataKey="category2" stepKey="deletecategory2"/>
178+
<deleteData createDataKey="category3" stepKey="deletecategory3"/>
176179
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
177180
</after>
178181
<!-- Go to storefront category page -->

app/code/Magento/Catalog/Test/Mftf/Test/AdminChangeContentOfWysiwygEditorForDisabledByDefaultTest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
<deleteData createDataKey="createPreReqBlock" stepKey="deletePreReqBlock" />
4545
<deleteData createDataKey="createCMSPage" stepKey="deletePreReqCMSPage" />
4646
<deleteData createDataKey="createSimpleProduct" stepKey="deleteSimpleProduct"/>
47+
<actionGroup ref="AdminDeleteCategoryByNameActionGroup" stepKey="deleteCategory">
4748
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
4849
</after>
4950
<!--Step-1: Login to admin-->

app/code/Magento/Catalog/Test/Mftf/Test/AdminCreateCategoryTest/AdminCreateCategoryTest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
<group value="cloud"/>
2020
</annotations>
2121
<after>
22+
<actionGroup ref="DeleteCategoryActionGroup" stepKey="deleteCategory"/>
2223
<actionGroup ref="AdminLogoutActionGroup" stepKey="adminLogout"/>
2324
</after>
2425

app/code/Magento/Catalog/Test/Mftf/Test/DeleteCategoriesTest.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@
5050
<fillField selector="{{AdminCategoryBasicFieldSection.CategoryNameInput}}" userInput="Default Category" stepKey="enterCategoryNameAsDefaultCategory"/>
5151
<actionGroup ref="AdminSaveCategoryActionGroup" stepKey="saveCategoryDefaultCategory"/>
5252
<seeElement selector="{{AdminCategoryMessagesSection.SuccessMessage}}" stepKey="assertSuccessMessageAfterSaveDefaultCategory"/>
53+
<deleteData createDataKey="createCategoryC" stepKey="deletecreateCategoryC"/>
54+
<deleteData createDataKey="createSubCategory" stepKey="deletecreateSubCategory"/>
55+
<deleteData createDataKey="createCategoryB" stepKey="deletecreateCategoryB"/>
56+
<deleteData createDataKey="createNewRootCategoryA" stepKey="deletecreateNewRootCategoryA"/>
5357
<actionGroup ref="AdminLogoutActionGroup" stepKey="adminLogout"/>
5458
<deleteData createDataKey="createProduct1" stepKey="deleteProduct1"/>
5559
<deleteData createDataKey="createProduct2" stepKey="deleteProduct2"/>

app/code/Magento/Catalog/Test/Mftf/Test/StorefrontProductsCompareWithEmptyAttributeTest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
<deleteData createDataKey="createProductAttribute" stepKey="deleteProductAttribute"/>
3434
<deleteData createDataKey="createSimpleProduct1" stepKey="deleteSimpleProduct1"/>
3535
<deleteData createDataKey="createSimpleProduct2" stepKey="deleteSimpleProduct2"/>
36+
<deleteData createDataKey="createCategory" stepKey="deletecreateCategory"/>
3637
<actionGroup ref="AdminLogoutActionGroup" stepKey="logoutOfAdmin"/>
3738

3839
<!-- Reindex invalidated indices after product attribute has been created/deleted -->

app/code/Magento/Catalog/Test/Mftf/Test/StorefrontVerifyBundleAndDownloadableProductPageLayoutTest.xml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,8 @@
5959
</actionGroup>
6060
<actionGroup ref="SaveProductFormActionGroup" stepKey="saveProduct"/>
6161
</before>
62-
<after>
63-
<!-- Delete created data -->
64-
<actionGroup ref="RemoveDownloadableDomainActionGroup" stepKey="removeDownloadableDomain"/>
65-
<createData entity="SimpleSubCategory" stepKey="deleteCreateCategory"/>
66-
<deleteData createDataKey="createCustomerViaTheStorefront" stepKey="deleteCustomerViaTheStorefront"/>
67-
<deleteData createDataKey="bundleProduct" stepKey="deleteBundleProduct"/>
68-
<deleteData createDataKey="downloadableProduct" stepKey="deleteDownloadableProduct"/>
69-
<!-- Log out -->
70-
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
62+
<after>SimpleSubCategory<deleteData createDataKey="createCategory" stepKey="deletecreateCategory"/>
63+
<deleteData createDataKey="deleteCreateCategory" stepKey="deletedeleteCreateCategory"/>
7164
</after>
7265
<!-- Pre-condition 1: Login to the storefront as customer -->
7366
<actionGroup ref="LoginToStorefrontActionGroup" stepKey="loginAsCustomer">

app/code/Magento/Catalog/Test/Mftf/Test/VerifyTinyMCEIsNativeWYSIWYGOnCatalogTest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
<see userInput="Hello World!" selector="{{StorefrontCategoryMainSection.CatalogDescription}}" stepKey="assertCatalogDescription"/>
4646
<after>
4747
<actionGroup ref="DisabledWYSIWYGActionGroup" stepKey="disableWYSIWYG"/>
48+
<actionGroup ref="AdminDeleteCategoryByNameActionGroup" stepKey="deleteCategory">
4849
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
4950
</after>
5051
</test>

0 commit comments

Comments
 (0)