File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
app/code/Magento/SalesRule/Test/Mftf/ActionGroup Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 6
6
*/
7
7
-->
8
8
<actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
9
- xsi : noNamespaceSchemaLocation =" ../../../../../../../dev/tests/acceptance/vendor/ magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/ Test/etc/actionGroupSchema.xsd" >
9
+ xsi : noNamespaceSchemaLocation =" urn: magento:mftf: Test/etc/actionGroupSchema.xsd" >
10
10
<actionGroup name =" AdminCreateCartPriceRuleActionGroup" >
11
11
<arguments >
12
12
<argument name =" ruleName" />
24
24
<see selector =" {{AdminCartPriceRulesFormSection.successMessage}}" userInput =" You saved the rule." stepKey =" seeSuccessMessage" />
25
25
</actionGroup >
26
26
27
+ <actionGroup name =" AdminCreateCartPriceRuleWithCouponCode" extends =" AdminCreateCartPriceRuleActionGroup" >
28
+ <arguments >
29
+ <argument name =" couponCode" defaultValue =" _defaultCoupon.code" />
30
+ </arguments >
31
+ <remove keyForRemoval =" selectActionType" />
32
+ <remove keyForRemoval =" fillDiscountAmount" />
33
+ <selectOption selector =" {{AdminCartPriceRulesFormSection.coupon}}" userInput =" Specific Coupon" stepKey =" selectCouponType" after =" fillRuleName" />
34
+ <waitForElementVisible selector =" {{AdminCartPriceRulesFormSection.couponCode}}" stepKey =" waitForElementVisible" after =" selectCouponType" />
35
+ <fillField selector =" {{AdminCartPriceRulesFormSection.couponCode}}" userInput =" {{couponCode}}" stepKey =" fillCouponCode" after =" waitForElementVisible" />
36
+ <fillField selector =" {{AdminCartPriceRulesFormSection.userPerCoupon}}" userInput =" 99" stepKey =" fillUserPerCoupon" after =" fillCouponCode" />
37
+ <selectOption selector =" {{AdminCartPriceRulesFormSection.apply}}" userInput =" Fixed amount discount for whole cart" stepKey =" selectActionTypeToFixed" after =" clickToExpandActions" />
38
+ <fillField selector =" {{AdminCartPriceRulesFormSection.discountAmount}}" userInput =" 1" stepKey =" fillDiscountAmount" after =" selectActionTypeToFixed" />
39
+ </actionGroup >
40
+
27
41
<!-- Delete Cart price Rule for Retailer customer-->
28
42
<actionGroup name =" AdminDeleteCartPriceRuleForRetailerActionGroup" >
29
43
<click selector =" {{AdminMenuSection.marketing}}" stepKey =" clickOnMarketing" />
You can’t perform that action at this time.
0 commit comments