|
24 | 24 | <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
|
25 | 25 |
|
26 | 26 | <!--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> |
31 | 31 | </before>
|
32 | 32 |
|
33 | 33 | <after>
|
34 | 34 | <!-- Delete sales rule -->
|
35 | 35 | <actionGroup ref="DeleteCartPriceRuleByName" stepKey="cleanUpRule">
|
36 |
| - <argument name="ruleName" value="ship"/> |
| 36 | + <argument name="ruleName" value="Cart Price Rule"/> |
37 | 37 | </actionGroup>
|
38 | 38 | <actionGroup ref="AdminLogoutActionGroup" stepKey="logoutFromBackend"/>
|
39 |
| - </after> |
| 39 | + </after> |
40 | 40 |
|
41 |
| - <!--Create cart price rule as per data and verify AssertCartPriceRuleSuccessSaveMessage--> |
| 41 | + <!--Create cart price rule as per data and verify Free shipping options--> |
42 | 42 | <actionGroup ref="AdminOpenCartPriceRulesPageActionGroup" stepKey="amOnCartPriceList"/>
|
43 | 43 | <click selector="{{AdminCartPriceRulesSection.addNewRuleButton}}" stepKey="clickAddNewRule"/>
|
44 | 44 | <fillField selector="{{AdminCartPriceRulesFormSection.ruleName}}" userInput="{{CartPriceRuleConditionAndFreeShippingApplied.name}}" stepKey="fillRuleName"/>
|
45 | 45 | <fillField selector="{{AdminCartPriceRulesFormSection.description}}" userInput="{{CartPriceRuleConditionAndFreeShippingApplied.description}}" stepKey="fillDescription"/>
|
46 | 46 | <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"/> |
48 | 55 | <selectOption selector="{{AdminCartPriceRulesFormSection.coupon}}" userInput="{{CartPriceRuleConditionAndFreeShippingApplied.coupon_type}}" stepKey="selectCouponType"/>
|
49 | 56 | <scrollTo selector="{{AdminCartPriceRulesFormSection.actionsHeader}}" stepKey="scrollToActionsHeader"/>
|
50 | 57 | <actionGroup ref="AdminCreateCartPriceRuleActionsSectionDiscountFieldsActionGroup" stepKey="createActiveCartPriceRuleActionsSection">
|
|
55 | 62 | </actionGroup>
|
56 | 63 | <actionGroup ref="AssertCartPriceRuleSuccessSaveMessageActionGroup" stepKey="seeAssertCartPriceRuleSuccessSaveMessage"/>
|
57 | 64 |
|
| 65 | + |
58 | 66 | <!--Search created cart price rule in grid-->
|
59 | 67 | <actionGroup ref="AdminFilterCartPriceRuleActionGroup" stepKey="searchCreatedCartPriceRuleInGrid">
|
60 | 68 | <argument name="ruleName" value="CartPriceRuleConditionAndFreeShippingApplied.name"/>
|
61 | 69 | </actionGroup>
|
62 | 70 |
|
63 |
| - <!--Go to cart price rule form page and verify AssertCartPriceRuleForm--> |
| 71 | + <!--Go to cart price rule form page and verify Free shipping options--> |
64 | 72 | <conditionalClick selector="{{AdminCartPriceRulesFormSection.actionsHeader}}" dependentSelector="{{AdminCartPriceRulesFormSection.actionsHeader}}" visible="true" stepKey="clickExpandActions"/>
|
65 | 73 | <see selector="{{AdminCartPriceRulesFormSection.apply}}" userInput="{{CartPriceRuleConditionAndFreeShippingApplied.simple_action}}" stepKey="seeActionApplyType"/>
|
66 | 74 | <seeInField selector="{{AdminCartPriceRulesFormSection.discountAmount}}" userInput="{{CartPriceRuleConditionAndFreeShippingApplied.discount_amount}}" stepKey="seeDiscountAmount"/>
|
67 | 75 | <selectOption selector="{{AdminCartPriceRulesFormSection.freeShipping}}" userInput="Please Select" stepKey="selectFreeShippingType"/>
|
68 | 76 | </test>
|
69 | 77 | </tests>
|
70 |
| - |
|
0 commit comments