Skip to content

Commit a237561

Browse files
RaghavendraTirumalasettiManjusha.S
authored andcommitted
BUG#AC-2242:Error:Cart Price rule forces Free Shipping to "No" even if "-- Please Select --" was saved
1 parent f86955a commit a237561

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

app/code/Magento/SalesRule/Test/Mftf/Test/SimplefreeshippingoptionsTest.xml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,27 +24,34 @@
2424
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
2525

2626
<!--navigate to cart price rule -->
27-
<actionGroup ref="AdminNavigateMenuActionGroup" stepKey="navigateToMarketingCartPriceRulesPage">
28-
<argument name="menuUiId" value="{{AdminMenuMarketing.dataUiId}}"/>
29-
<argument name="submenuUiId" value="{{AdminMenuMarketingPromotionsCartPriceRules.dataUiId}}"/>
30-
</actionGroup>
27+
<actionGroup ref="AdminNavigateMenuActionGroup" stepKey="navigateToMarketingCartPriceRulesPage">
28+
<argument name="menuUiId" value="{{AdminMenuMarketing.dataUiId}}"/>
29+
<argument name="submenuUiId" value="{{AdminMenuMarketingPromotionsCartPriceRules.dataUiId}}"/>
30+
</actionGroup>
3131
</before>
3232

3333
<after>
3434
<!-- Delete sales rule -->
3535
<actionGroup ref="DeleteCartPriceRuleByName" stepKey="cleanUpRule">
36-
<argument name="ruleName" value="ship"/>
36+
<argument name="ruleName" value="Cart Price Rule"/>
3737
</actionGroup>
3838
<actionGroup ref="AdminLogoutActionGroup" stepKey="logoutFromBackend"/>
39-
</after>
39+
</after>
4040

41-
<!--Create cart price rule as per data and verify AssertCartPriceRuleSuccessSaveMessage-->
41+
<!--Create cart price rule as per data and verify Free shipping options-->
4242
<actionGroup ref="AdminOpenCartPriceRulesPageActionGroup" stepKey="amOnCartPriceList"/>
4343
<click selector="{{AdminCartPriceRulesSection.addNewRuleButton}}" stepKey="clickAddNewRule"/>
4444
<fillField selector="{{AdminCartPriceRulesFormSection.ruleName}}" userInput="{{CartPriceRuleConditionAndFreeShippingApplied.name}}" stepKey="fillRuleName"/>
4545
<fillField selector="{{AdminCartPriceRulesFormSection.description}}" userInput="{{CartPriceRuleConditionAndFreeShippingApplied.description}}" stepKey="fillDescription"/>
4646
<selectOption selector="{{AdminCartPriceRulesFormSection.websites}}" userInput="{{CartPriceRuleConditionAndFreeShippingApplied.websites}}" stepKey="selectWebsites"/>
47-
<selectOption selector="{{AdminCartPriceRulesFormSection.customerGroups}}" parameterArray="[{{CartPriceRuleConditionAndFreeShippingApplied.customerGroups}}]" stepKey="selectCustomerGroup"/>
47+
48+
49+
<click selector="{{AdminCartPriceRulesFormSection.customerGroups}}" stepKey="expandCustomerGroups" after="selectWebsites"/>
50+
<click selector="{{AdminCartPriceRulesFormSection.customerGroupsSelectAll}}" stepKey="clickSelectAll" after="expandCustomerGroups"/>
51+
<click selector="{{AdminCartPriceRulesFormSection.customerGroupsDoneBtn}}" stepKey="clickDone" after="clickSelectAll"/>
52+
53+
54+
<wait time="10" stepKey="waitForUpdateStarts"/>
4855
<selectOption selector="{{AdminCartPriceRulesFormSection.coupon}}" userInput="{{CartPriceRuleConditionAndFreeShippingApplied.coupon_type}}" stepKey="selectCouponType"/>
4956
<scrollTo selector="{{AdminCartPriceRulesFormSection.actionsHeader}}" stepKey="scrollToActionsHeader"/>
5057
<actionGroup ref="AdminCreateCartPriceRuleActionsSectionDiscountFieldsActionGroup" stepKey="createActiveCartPriceRuleActionsSection">
@@ -55,16 +62,16 @@
5562
</actionGroup>
5663
<actionGroup ref="AssertCartPriceRuleSuccessSaveMessageActionGroup" stepKey="seeAssertCartPriceRuleSuccessSaveMessage"/>
5764

65+
5866
<!--Search created cart price rule in grid-->
5967
<actionGroup ref="AdminFilterCartPriceRuleActionGroup" stepKey="searchCreatedCartPriceRuleInGrid">
6068
<argument name="ruleName" value="CartPriceRuleConditionAndFreeShippingApplied.name"/>
6169
</actionGroup>
6270

63-
<!--Go to cart price rule form page and verify AssertCartPriceRuleForm-->
71+
<!--Go to cart price rule form page and verify Free shipping options-->
6472
<conditionalClick selector="{{AdminCartPriceRulesFormSection.actionsHeader}}" dependentSelector="{{AdminCartPriceRulesFormSection.actionsHeader}}" visible="true" stepKey="clickExpandActions"/>
6573
<see selector="{{AdminCartPriceRulesFormSection.apply}}" userInput="{{CartPriceRuleConditionAndFreeShippingApplied.simple_action}}" stepKey="seeActionApplyType"/>
6674
<seeInField selector="{{AdminCartPriceRulesFormSection.discountAmount}}" userInput="{{CartPriceRuleConditionAndFreeShippingApplied.discount_amount}}" stepKey="seeDiscountAmount"/>
6775
<selectOption selector="{{AdminCartPriceRulesFormSection.freeShipping}}" userInput="Please Select" stepKey="selectFreeShippingType"/>
6876
</test>
6977
</tests>
70-

0 commit comments

Comments
 (0)