Skip to content

Commit 8b7b010

Browse files
Sahil.kumarManjusha.S
authored andcommitted
MQE-3438: Created new file
1 parent 7c6198a commit 8b7b010

File tree

1 file changed

+66
-0
lines changed

1 file changed

+66
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
10+
<test name="AdminCreateCatalogPriceRuleTest">
11+
<annotations>
12+
<features value="CatalogRule"/>
13+
<stories value="Create catalog price rule"/>
14+
<title value="Admin create and apply catalog price rule"/>
15+
<description value="Admin create and apply catalog price rule"/>
16+
<severity value="MAJOR"/>
17+
<testCaseId value="MC-26702"/>
18+
<group value="CatalogRule"/>
19+
</annotations>
20+
<before>
21+
<createData entity="_defaultCategory" stepKey="createCategory1"/>
22+
<createData entity="SimpleProduct" stepKey="simpleProduct1">
23+
<field key="price">56.78</field>
24+
<requiredEntity createDataKey="createCategory1"/>
25+
</createData>
26+
<createData entity="SimpleSubCategory" stepKey="createCategory2"/>
27+
<createData entity="_defaultProduct" stepKey="simpleProduct2">
28+
<requiredEntity createDataKey="createCategory2"/>
29+
</createData>
30+
</before>
31+
32+
<!--Login as admin -->
33+
<actionGroup ref="AdminLoginActionGroup" stepKey="LoginAsAdmin"/>
34+
35+
<actionGroup ref="AdminOpenCatalogPriceRulePageActionGroup" stepKey="goToCatalogPriceRulePage"/>
36+
<click selector="{{AdminGridMainControls.add}}" stepKey="addNewRule"/>
37+
<waitForPageLoad stepKey="waitForIndividualRulePage"/>
38+
39+
<actionGroup ref="AdminCatalogPriceRuleFillMainInfoActionGroup" stepKey="fillMainInfoForFirstPriceRule">
40+
<argument name="name" value="TestCatalogPriceRule"/>
41+
</actionGroup>
42+
43+
<actionGroup ref="AdminFillCatalogRuleConditionActionGroup" stepKey="createCatalogPriceRule">
44+
<argument name="conditionValue" value="$createCategory1.id$"/>
45+
</actionGroup>
46+
47+
<actionGroup ref="AdminCatalogPriceRuleFillActionsActionGroup" stepKey="fillActionsForCatalogPriceRule"/>
48+
49+
<actionGroup ref="AdminCatalogPriceRuleSaveAndApplyActionGroup" stepKey="saveAndApplyCatalogPriceRule"/>
50+
51+
52+
<!-- Go to storefront home page -->
53+
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToHomepage"/>
54+
55+
<!-- Check Grouped product is visible on the storefront-->
56+
<actionGroup ref="StorefrontGoToCategoryPageActionGroup" stepKey="openCategory1">
57+
<argument name="categoryName" value="$$createCategory1.name$$"/>
58+
</actionGroup>
59+
60+
61+
62+
<actionGroup ref="StorefrontGoToCategoryPageActionGroup" stepKey="openCategory2">
63+
<argument name="categoryName" value="$$createCategory2.name$$"/>
64+
</actionGroup>
65+
</test>
66+
</tests>

0 commit comments

Comments
 (0)