Skip to content

Commit 71b0d26

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

File tree

6 files changed

+12
-4
lines changed

6 files changed

+12
-4
lines changed

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/ConfigurableProduct/Test/Mftf/Test/AdminConfigurableProductUpdateTest/AdminConfigurableProductDisableAnOptionTest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindexInvalidatedIndices">
7777
<argument name="indices" value=""/>
7878
</actionGroup>
79+
<deleteData createDataKey="createCategory" stepKey="deletecreateCategory"/>
7980
</after>
8081

8182
<!--check storefront for both options-->

app/code/Magento/ConfigurableProduct/Test/Mftf/Test/AdvanceCatalogSearchConfigurableTest/AdvanceCatalogSearchConfigurableByShortDescriptionTest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@
8989
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindexInvalidatedIndices">
9090
<argument name="indices" value=""/>
9191
</actionGroup>
92+
<deleteData createDataKey="categoryHandle" stepKey="deletecategoryHandle"/>
9293
</after>
9394
</test>
9495
</tests>

app/code/Magento/ConfigurableProduct/Test/Mftf/Test/StorefrontAdvanceCatalogSearchConfigurableBySkuWithHyphenTest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindexInvalidatedIndices">
9191
<argument name="indices" value=""/>
9292
</actionGroup>
93+
<deleteData createDataKey="categoryHandle" stepKey="deletecategoryHandle"/>
9394
</after>
9495
</test>
9596
</tests>

app/code/Magento/ImportExport/Test/Mftf/Test/AdminImportProductsWithReplaceBehaviorTest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
<after>
4040
<deleteData createDataKey="createSimpleProduct2" stepKey="deleteSimpleProduct2"/>
4141
<deleteData createDataKey="createSimpleProduct3" stepKey="deleteSimpleProduct3"/>
42+
<actionGroup ref="AdminDeleteCategoryByNameActionGroup" stepKey="deleteImportedCategory">
4243
</after>
4344

4445
<!-- Import products with replace behavior -->

app/code/Magento/Reports/Test/Mftf/Test/AdminLowStockProductTest.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
3-
/**
4-
* Copyright © Magento, Inc. All rights reserved.
5-
* See COPYING.txt for license details.
6-
*/
3+
/**
4+
* Copyright 2024 Adobe
5+
* All Rights Reserved.
6+
*/
77
-->
88

99
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

0 commit comments

Comments
 (0)