Skip to content

Commit ec0e5c1

Browse files
ACQE-8744: [ATLH] Categories. Second round of update.
- Updated product deletion using helper and moved category cleanup in after
1 parent 0685253 commit ec0e5c1

File tree

3 files changed

+8
-13
lines changed

3 files changed

+8
-13
lines changed

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,8 @@
3333
</createData>
3434
</before>
3535
<after>
36-
<deleteData createDataKey="createProductA" stepKey="deleteProductA"/>
37-
<deleteData createDataKey="createProductB" stepKey="deleteProductB"/>
38-
<deleteData createDataKey="createProductC" stepKey="deleteProductC"/>
39-
<deleteData createDataKey="createProductD" stepKey="deleteProductD"/>
40-
<deleteData createDataKey="createProductE" stepKey="deleteProductE"/>
36+
<!-- Delete all products via API -->
37+
<helper class="Magento\Catalog\Test\Mftf\Helper\ProductApiHelper" method="deleteAllProductsApi" stepKey="deleteAllProductsViaApi"/>
4138
<deleteData createDataKey="createCategoryA" stepKey="deleteCategoryA"/>
4239
</after>
4340

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
<helper class="Magento\Catalog\Test\Mftf\Helper\ProductApiHelper" method="deleteAllProductsApi" stepKey="deleteAllProductsViaApi"/>
2727
<actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="goToProductList"/>
2828
<actionGroup ref="AdminClearGridFiltersActionGroup" stepKey="resetProductFilters"/>
29+
<!--Clean up categories-->
30+
<actionGroup ref="DeleteCategoryActionGroup" stepKey="cleanSimpleSubCategory">
31+
<argument name="categoryEntity" value="SimpleSubCategory"/>
32+
</actionGroup>
2933
<actionGroup ref="AdminLogoutActionGroup" stepKey="logoutOfAdmin"/>
3034
<magentoCLI command="config:set checkout/options/enable_guest_checkout_login 0" stepKey="DisablingGuestCheckoutLogin"/>
3135
</after>
@@ -253,11 +257,6 @@
253257
</actionGroup>
254258

255259
<!--@TODO Move cleanup to "after" when MQE-830 is resolved-->
256-
<!--Clean up categories-->
257-
<comment userInput="Clean up categories" stepKey="cleanupCategoriesComment"/>
258-
<actionGroup ref="DeleteCategoryActionGroup" stepKey="cleanSimpleSubCategory">
259-
<argument name="categoryEntity" value="SimpleSubCategory"/>
260-
</actionGroup>
261260
<!--Clean up products-->
262261
<comment userInput="Clean up simple product" stepKey="cleanUpSimpleProduct"/>
263262
<actionGroup ref="DeleteProductUsingProductGridActionGroup" stepKey="deleteSimpleProduct">

app/code/Magento/Review/Test/Mftf/Test/StorefrontVerifyMultipleProductRatingsOnCategoryPageTest.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,14 @@
4343
<argument name="customerEmail" value="CustomerEntityOne.email"/>
4444
</actionGroup>
4545
<!-- delete Category and Products -->
46-
<deleteData createDataKey="createProduct1" stepKey="deleteProduct1"/>
47-
<deleteData createDataKey="createProduct2" stepKey="deleteProduct2"/>
46+
<helper class="Magento\Catalog\Test\Mftf\Helper\ProductApiHelper" method="deleteAllProductsApi" stepKey="deleteAllProductsViaApi"/>
4847
<deleteData createDataKey="category" stepKey="deleteCategory"/>
4948
<!-- Logout -->
5049
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
5150
<!-- Disable single store view back -->
5251
<magentoCLI command="config:set general/single_store_mode/enabled 0" stepKey="enabledSingleStoreMode"/>
5352
</after>
54-
53+
5554
<!-- Go to frontend and make a user account and login with it -->
5655
<actionGroup ref="SignUpNewUserFromStorefrontActionGroup" stepKey="signUpNewUser">
5756
<argument name="Customer" value="CustomerEntityOne"/>

0 commit comments

Comments
 (0)