Skip to content

Commit c813f57

Browse files
Sahil.kumarManjusha.S
authored andcommitted
MQE-3438:28th April updates
1 parent 8b7b010 commit c813f57

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

app/code/Magento/CatalogRule/Test/Mftf/Test/AdminCreateCatalogPriceRuleTest/AdminCreateCatalogPriceRuleTest.xml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,34 @@
1919
</annotations>
2020
<before>
2121
<createData entity="_defaultCategory" stepKey="createCategory1"/>
22-
<createData entity="SimpleProduct" stepKey="simpleProduct1">
23-
<field key="price">56.78</field>
22+
<!-- Create Simple Product 1 -->
23+
<createData entity="_defaultProduct" stepKey="simpleProduct1">
2424
<requiredEntity createDataKey="createCategory1"/>
25+
<field key="price">56.78</field>
2526
</createData>
27+
<!-- Create Simple Product 2 -->
2628
<createData entity="SimpleSubCategory" stepKey="createCategory2"/>
2729
<createData entity="_defaultProduct" stepKey="simpleProduct2">
2830
<requiredEntity createDataKey="createCategory2"/>
2931
</createData>
32+
33+
<magentoCron groups="index" stepKey="fixInvalidatedIndicesBeforeTest"/>
3034
</before>
35+
<after>
36+
<!-- Delete products and category -->
37+
<deleteData createDataKey="simpleProduct1" stepKey="deleteProduct"/>
38+
<deleteData createDataKey="createCategory1" stepKey="deleteCategory"/>
39+
40+
<!-- Delete products and category -->
41+
<deleteData createDataKey="simpleProduct2" stepKey="deleteProduct"/>
42+
<deleteData createDataKey="createCategory2" stepKey="deleteCategory"/>
43+
44+
<!-- Delete the catalog price rule -->
45+
<actionGroup ref="AdminCatalogPriceRuleDeleteAllActionGroup" stepKey="deleteAllCatalogRulesAfterTest"/>
46+
<magentoCron groups="index" stepKey="fixInvalidatedIndicesAfter"/>
47+
<!-- Logout -->
48+
<actionGroup ref="AdminLogoutActionGroup" stepKey="logoutFromAdmin"/>
49+
</after>
3150

3251
<!--Login as admin -->
3352
<actionGroup ref="AdminLoginActionGroup" stepKey="LoginAsAdmin"/>

0 commit comments

Comments
 (0)