File tree Expand file tree Collapse file tree 11 files changed +22
-11
lines changed
app/code/Magento/SalesRule/Test/Mftf/Test Expand file tree Collapse file tree 11 files changed +22
-11
lines changed 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
- <fillField selector =" {{AdminCartPriceRulesFormSection.fromDate}}" userInput =" 01/1/2018" stepKey =" fillFromDate" />
43
+ <generateDate date =" -1 day" format =" m/d/Y" stepKey =" yesterdayDate" />
44
+ <fillField selector =" {{AdminCartPriceRulesFormSection.fromDate}}" userInput =" {$yesterdayDate}" stepKey =" fillFromDate" />
44
45
<click selector =" {{AdminCartPriceRulesFormSection.actionsHeader}}" stepKey =" clickToExpandActions" />
45
46
<selectOption selector =" {{AdminCartPriceRulesFormSection.apply}}" userInput =" Buy X get Y free (discount amount is Y)" stepKey =" selectActionType" />
46
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
- <fillField selector =" {{AdminCartPriceRulesFormSection.fromDate}}" userInput =" 01/1/2018" stepKey =" fillFromDate" />
45
+ <generateDate date =" -1 day" format =" m/d/Y" stepKey =" yesterdayDate" />
46
+ <fillField selector =" {{AdminCartPriceRulesFormSection.fromDate}}" userInput =" {$yesterdayDate}" stepKey =" fillFromDate" />
46
47
<click selector =" {{AdminCartPriceRulesFormSection.actionsHeader}}" stepKey =" clickToExpandActions" />
47
48
<selectOption selector =" {{AdminCartPriceRulesFormSection.apply}}" userInput =" Fixed amount discount for whole cart" stepKey =" selectActionType" />
48
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
- <fillField selector =" {{AdminCartPriceRulesFormSection.fromDate}}" userInput =" 01/1/2018" stepKey =" fillFromDate" />
45
+ <generateDate date =" -1 day" format =" m/d/Y" stepKey =" yesterdayDate" />
46
+ <fillField selector =" {{AdminCartPriceRulesFormSection.fromDate}}" userInput =" {$yesterdayDate}" stepKey =" fillFromDate" />
46
47
<click selector =" {{AdminCartPriceRulesFormSection.actionsHeader}}" stepKey =" clickToExpandActions" />
47
48
<selectOption selector =" {{AdminCartPriceRulesFormSection.apply}}" userInput =" Fixed amount discount for whole cart" stepKey =" selectActionType" />
48
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
- <fillField selector =" {{AdminCartPriceRulesFormSection.fromDate}}" userInput =" 01/1/2018" stepKey =" fillFromDate" />
43
+ <generateDate date =" -1 day" format =" m/d/Y" stepKey =" yesterdayDate" />
44
+ <fillField selector =" {{AdminCartPriceRulesFormSection.fromDate}}" userInput =" {$yesterdayDate}" stepKey =" fillFromDate" />
44
45
<click selector =" {{AdminCartPriceRulesFormSection.actionsHeader}}" stepKey =" clickToExpandActions" />
45
46
<selectOption selector =" {{AdminCartPriceRulesFormSection.apply}}" userInput =" Fixed amount discount" stepKey =" selectActionType" />
46
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
- <fillField selector =" {{AdminCartPriceRulesFormSection.fromDate}}" userInput =" 01/1/2018" stepKey =" fillFromDate" />
43
+ <generateDate date =" -1 day" format =" m/d/Y" stepKey =" yesterdayDate" />
44
+ <fillField selector =" {{AdminCartPriceRulesFormSection.fromDate}}" userInput =" {$yesterdayDate}" stepKey =" fillFromDate" />
44
45
<click selector =" {{AdminCartPriceRulesFormSection.actionsHeader}}" stepKey =" clickToExpandActions" />
45
46
<selectOption selector =" {{AdminCartPriceRulesFormSection.apply}}" userInput =" Fixed amount discount for whole cart" stepKey =" selectActionType" />
46
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
- <fillField selector =" {{AdminCartPriceRulesFormSection.fromDate}}" userInput =" 01/1/2018" stepKey =" fillFromDate" />
43
+ <generateDate date =" -1 day" format =" m/d/Y" stepKey =" yesterdayDate" />
44
+ <fillField selector =" {{AdminCartPriceRulesFormSection.fromDate}}" userInput =" {$yesterdayDate}" stepKey =" fillFromDate" />
44
45
<click selector =" {{AdminCartPriceRulesFormSection.actionsHeader}}" stepKey =" clickToExpandActions" />
45
46
<selectOption selector =" {{AdminCartPriceRulesFormSection.apply}}" userInput =" Percent of product price discount" stepKey =" selectActionType" />
46
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
- <fillField selector =" {{AdminCartPriceRulesFormSection.fromDate}}" userInput =" 01/1/2018" stepKey =" fillFromDate" />
46
+ <generateDate date =" -1 day" format =" m/d/Y" stepKey =" yesterdayDate" />
47
+ <fillField selector =" {{AdminCartPriceRulesFormSection.fromDate}}" userInput =" {$yesterdayDate}" stepKey =" fillFromDate" />
47
48
<click selector =" {{PriceRuleConditionsSection.conditionsTab}}" stepKey =" expandConditions" />
48
49
<!-- Scroll down to fix some flaky behavior... -->
49
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
- <fillField selector =" {{AdminCartPriceRulesFormSection.fromDate}}" userInput =" 01/1/2018" stepKey =" fillFromDate" />
46
+ <generateDate date =" -1 day" format =" m/d/Y" stepKey =" yesterdayDate" />
47
+ <fillField selector =" {{AdminCartPriceRulesFormSection.fromDate}}" userInput =" {$yesterdayDate}" stepKey =" fillFromDate" />
47
48
<click selector =" {{PriceRuleConditionsSection.conditionsTab}}" stepKey =" expandConditions" />
48
49
<!-- Scroll down to fix some flaky behavior... -->
49
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
- <fillField selector =" {{AdminCartPriceRulesFormSection.fromDate}}" userInput =" 01/1/2018" stepKey =" fillFromDate" />
46
+ <generateDate date =" -1 day" format =" m/d/Y" stepKey =" yesterdayDate" />
47
+ <fillField selector =" {{AdminCartPriceRulesFormSection.fromDate}}" userInput =" {$yesterdayDate}" stepKey =" fillFromDate" />
47
48
<click selector =" {{PriceRuleConditionsSection.conditionsTab}}" stepKey =" expandConditions" />
48
49
<!-- Scroll down to fix some flaky behavior... -->
49
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
- <fillField selector =" {{AdminCartPriceRulesFormSection.fromDate}}" userInput =" 01/1/2018" stepKey =" fillFromDate" />
46
+ <generateDate date =" -1 day" format =" m/d/Y" stepKey =" yesterdayDate" />
47
+ <fillField selector =" {{AdminCartPriceRulesFormSection.fromDate}}" userInput =" {$yesterdayDate}" stepKey =" fillFromDate" />
47
48
<click selector =" {{PriceRuleConditionsSection.conditionsTab}}" stepKey =" expandConditions" />
48
49
<!-- Scroll down to fix some flaky behavior... -->
49
50
<scrollTo selector =" {{PriceRuleConditionsSection.conditionsTab}}" stepKey =" scrollToConditionsTab" />
You can’t perform that action at this time.
0 commit comments