File tree Expand file tree Collapse file tree 12 files changed +24
-0
lines changed
app/code/Magento/SalesRule/Test/Mftf Expand file tree Collapse file tree 12 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 21
21
<element name =" coupon" type =" select" selector =" select[name='coupon_type']" />
22
22
<element name =" couponCode" type =" input" selector =" input[name='coupon_code']" />
23
23
<element name =" useAutoGeneration" type =" checkbox" selector =" input[name='use_auto_generation']" />
24
+ <element name =" fromDate" type =" input" selector =" input[name='from_date']" />
25
+ <element name =" toDate" type =" input" selector =" input[name='to_date']" />
24
26
<element name =" userPerCoupon" type =" input" selector =" //input[@name='uses_per_coupon']" />
25
27
<element name =" userPerCustomer" type =" input" selector =" //input[@name='uses_per_customer']" />
26
28
<element name =" priority" type =" input" selector =" //*[@name='sort_order']" />
Original file line number Diff line number Diff line change 40
40
<fillField selector =" {{AdminCartPriceRulesFormSection.ruleName}}" userInput =" {{_defaultCoupon.code}}" stepKey =" fillRuleName" />
41
41
<selectOption selector =" {{AdminCartPriceRulesFormSection.websites}}" userInput =" Main Website" stepKey =" selectWebsites" />
42
42
<selectOption selector =" {{AdminCartPriceRulesFormSection.customerGroups}}" userInput =" NOT LOGGED IN" stepKey =" selectCustomerGroup" />
43
+ <generateDate date =" -1 day" format =" m/d/Y" stepKey =" yesterdayDate" />
44
+ <fillField selector =" {{AdminCartPriceRulesFormSection.fromDate}}" userInput =" {$yesterdayDate}" stepKey =" fillFromDate" />
43
45
<click selector =" {{AdminCartPriceRulesFormSection.actionsHeader}}" stepKey =" clickToExpandActions" />
44
46
<selectOption selector =" {{AdminCartPriceRulesFormSection.apply}}" userInput =" Buy X get Y free (discount amount is Y)" stepKey =" selectActionType" />
45
47
<fillField selector =" {{AdminCartPriceRulesFormSection.discountAmount}}" userInput =" 1" stepKey =" fillDiscountAmount" />
Original file line number Diff line number Diff line change 42
42
<selectOption selector =" {{AdminCartPriceRulesFormSection.customerGroups}}" userInput =" NOT LOGGED IN" stepKey =" selectCustomerGroup" />
43
43
<selectOption selector =" {{AdminCartPriceRulesFormSection.coupon}}" userInput =" Specific Coupon" stepKey =" selectCouponType" />
44
44
<fillField selector =" {{AdminCartPriceRulesFormSection.couponCode}}" userInput =" {{_defaultCoupon.code}}" stepKey =" fillCouponCode" />
45
+ <generateDate date =" -1 day" format =" m/d/Y" stepKey =" yesterdayDate" />
46
+ <fillField selector =" {{AdminCartPriceRulesFormSection.fromDate}}" userInput =" {$yesterdayDate}" stepKey =" fillFromDate" />
45
47
<click selector =" {{AdminCartPriceRulesFormSection.actionsHeader}}" stepKey =" clickToExpandActions" />
46
48
<selectOption selector =" {{AdminCartPriceRulesFormSection.apply}}" userInput =" Fixed amount discount for whole cart" stepKey =" selectActionType" />
47
49
<fillField selector =" {{AdminCartPriceRulesFormSection.discountAmount}}" userInput =" 5" stepKey =" fillDiscountAmount" />
Original file line number Diff line number Diff line change 42
42
<selectOption selector =" {{AdminCartPriceRulesFormSection.customerGroups}}" userInput =" NOT LOGGED IN" stepKey =" selectCustomerGroup" />
43
43
<selectOption selector =" {{AdminCartPriceRulesFormSection.coupon}}" userInput =" Specific Coupon" stepKey =" selectCouponType" />
44
44
<checkOption selector =" {{AdminCartPriceRulesFormSection.useAutoGeneration}}" stepKey =" tickAutoGeneration" />
45
+ <generateDate date =" -1 day" format =" m/d/Y" stepKey =" yesterdayDate" />
46
+ <fillField selector =" {{AdminCartPriceRulesFormSection.fromDate}}" userInput =" {$yesterdayDate}" stepKey =" fillFromDate" />
45
47
<click selector =" {{AdminCartPriceRulesFormSection.actionsHeader}}" stepKey =" clickToExpandActions" />
46
48
<selectOption selector =" {{AdminCartPriceRulesFormSection.apply}}" userInput =" Fixed amount discount for whole cart" stepKey =" selectActionType" />
47
49
<fillField selector =" {{AdminCartPriceRulesFormSection.discountAmount}}" userInput =" 0.99" stepKey =" fillDiscountAmount" />
Original file line number Diff line number Diff line change 40
40
<fillField selector =" {{AdminCartPriceRulesFormSection.ruleName}}" userInput =" {{_defaultCoupon.code}}" stepKey =" fillRuleName" />
41
41
<selectOption selector =" {{AdminCartPriceRulesFormSection.websites}}" userInput =" Main Website" stepKey =" selectWebsites" />
42
42
<selectOption selector =" {{AdminCartPriceRulesFormSection.customerGroups}}" userInput =" NOT LOGGED IN" stepKey =" selectCustomerGroup" />
43
+ <generateDate date =" -1 day" format =" m/d/Y" stepKey =" yesterdayDate" />
44
+ <fillField selector =" {{AdminCartPriceRulesFormSection.fromDate}}" userInput =" {$yesterdayDate}" stepKey =" fillFromDate" />
43
45
<click selector =" {{AdminCartPriceRulesFormSection.actionsHeader}}" stepKey =" clickToExpandActions" />
44
46
<selectOption selector =" {{AdminCartPriceRulesFormSection.apply}}" userInput =" Fixed amount discount" stepKey =" selectActionType" />
45
47
<fillField selector =" {{AdminCartPriceRulesFormSection.discountAmount}}" userInput =" 10" stepKey =" fillDiscountAmount" />
Original file line number Diff line number Diff line change 40
40
<fillField selector =" {{AdminCartPriceRulesFormSection.ruleName}}" userInput =" {{SimpleSalesRule.name}}" stepKey =" fillRuleName" />
41
41
<selectOption selector =" {{AdminCartPriceRulesFormSection.websites}}" userInput =" Main Website" stepKey =" selectWebsites" />
42
42
<selectOption selector =" {{AdminCartPriceRulesFormSection.customerGroups}}" userInput =" NOT LOGGED IN" stepKey =" selectCustomerGroup" />
43
+ <generateDate date =" -1 day" format =" m/d/Y" stepKey =" yesterdayDate" />
44
+ <fillField selector =" {{AdminCartPriceRulesFormSection.fromDate}}" userInput =" {$yesterdayDate}" stepKey =" fillFromDate" />
43
45
<click selector =" {{AdminCartPriceRulesFormSection.actionsHeader}}" stepKey =" clickToExpandActions" />
44
46
<selectOption selector =" {{AdminCartPriceRulesFormSection.apply}}" userInput =" Fixed amount discount for whole cart" stepKey =" selectActionType" />
45
47
<fillField selector =" {{AdminCartPriceRulesFormSection.discountAmount}}" userInput =" 19.99" stepKey =" fillDiscountAmount" />
Original file line number Diff line number Diff line change 40
40
<fillField selector =" {{AdminCartPriceRulesFormSection.ruleName}}" userInput =" {{_defaultCoupon.code}}" stepKey =" fillRuleName" />
41
41
<selectOption selector =" {{AdminCartPriceRulesFormSection.websites}}" userInput =" Main Website" stepKey =" selectWebsites" />
42
42
<selectOption selector =" {{AdminCartPriceRulesFormSection.customerGroups}}" userInput =" NOT LOGGED IN" stepKey =" selectCustomerGroup" />
43
+ <generateDate date =" -1 day" format =" m/d/Y" stepKey =" yesterdayDate" />
44
+ <fillField selector =" {{AdminCartPriceRulesFormSection.fromDate}}" userInput =" {$yesterdayDate}" stepKey =" fillFromDate" />
43
45
<click selector =" {{AdminCartPriceRulesFormSection.actionsHeader}}" stepKey =" clickToExpandActions" />
44
46
<selectOption selector =" {{AdminCartPriceRulesFormSection.apply}}" userInput =" Percent of product price discount" stepKey =" selectActionType" />
45
47
<fillField selector =" {{AdminCartPriceRulesFormSection.discountAmount}}" userInput =" 50" stepKey =" fillDiscountAmount" />
Original file line number Diff line number Diff line change 43
43
<fillField selector =" {{AdminCartPriceRulesFormSection.ruleName}}" userInput =" {{SimpleSalesRule.name}}" stepKey =" fillRuleName" />
44
44
<selectOption selector =" {{AdminCartPriceRulesFormSection.websites}}" userInput =" Main Website" stepKey =" selectWebsites" />
45
45
<actionGroup ref =" selectNotLoggedInCustomerGroup" stepKey =" selectNotLoggedInCustomerGroup" />
46
+ <generateDate date =" -1 day" format =" m/d/Y" stepKey =" yesterdayDate" />
47
+ <fillField selector =" {{AdminCartPriceRulesFormSection.fromDate}}" userInput =" {$yesterdayDate}" stepKey =" fillFromDate" />
46
48
<click selector =" {{PriceRuleConditionsSection.conditionsTab}}" stepKey =" expandConditions" />
47
49
<!-- Scroll down to fix some flaky behavior... -->
48
50
<scrollTo selector =" {{PriceRuleConditionsSection.conditionsTab}}" stepKey =" scrollToConditionsTab" />
Original file line number Diff line number Diff line change 43
43
<fillField selector =" {{AdminCartPriceRulesFormSection.ruleName}}" userInput =" {{SimpleSalesRule.name}}" stepKey =" fillRuleName" />
44
44
<selectOption selector =" {{AdminCartPriceRulesFormSection.websites}}" userInput =" Main Website" stepKey =" selectWebsites" />
45
45
<actionGroup ref =" selectNotLoggedInCustomerGroup" stepKey =" selectNotLoggedInCustomerGroup" />
46
+ <generateDate date =" -1 day" format =" m/d/Y" stepKey =" yesterdayDate" />
47
+ <fillField selector =" {{AdminCartPriceRulesFormSection.fromDate}}" userInput =" {$yesterdayDate}" stepKey =" fillFromDate" />
46
48
<click selector =" {{PriceRuleConditionsSection.conditionsTab}}" stepKey =" expandConditions" />
47
49
<!-- Scroll down to fix some flaky behavior... -->
48
50
<scrollTo selector =" {{PriceRuleConditionsSection.conditionsTab}}" stepKey =" scrollToConditionsTab" />
Original file line number Diff line number Diff line change 43
43
<fillField selector =" {{AdminCartPriceRulesFormSection.ruleName}}" userInput =" {{SimpleSalesRule.name}}" stepKey =" fillRuleName" />
44
44
<selectOption selector =" {{AdminCartPriceRulesFormSection.websites}}" userInput =" Main Website" stepKey =" selectWebsites" />
45
45
<actionGroup ref =" selectNotLoggedInCustomerGroup" stepKey =" selectNotLoggedInCustomerGroup" />
46
+ <generateDate date =" -1 day" format =" m/d/Y" stepKey =" yesterdayDate" />
47
+ <fillField selector =" {{AdminCartPriceRulesFormSection.fromDate}}" userInput =" {$yesterdayDate}" stepKey =" fillFromDate" />
46
48
<click selector =" {{PriceRuleConditionsSection.conditionsTab}}" stepKey =" expandConditions" />
47
49
<!-- Scroll down to fix some flaky behavior... -->
48
50
<scrollTo selector =" {{PriceRuleConditionsSection.conditionsTab}}" stepKey =" scrollToConditionsTab" />
You can’t perform that action at this time.
0 commit comments