|
42 | 42 | <actionGroup ref="AdminLogoutActionGroup" stepKey="adminLogout"/>
|
43 | 43 | </after>
|
44 | 44 |
|
45 |
| - <!-- Create a cart price rule --> |
| 45 | + <!-- Create a cart price rule --> |
46 | 46 | <actionGroup ref="AdminOpenCartPriceRulesPageActionGroup" stepKey="amOnCartPriceList"/>
|
47 | 47 | <click selector="{{AdminCartPriceRulesSection.addNewRuleButton}}" stepKey="clickAddNewRule"/>
|
48 | 48 | <fillField selector="{{AdminCartPriceRulesFormSection.ruleName}}" userInput="{{_defaultCoupon.code}}" stepKey="fillRuleName"/>
|
49 | 49 | <selectOption selector="{{AdminCartPriceRulesFormSection.websites}}" userInput="Main Website" stepKey="selectWebsites"/>
|
50 |
| - <!-- Select custom customer groups --> |
51 |
| - <click selector="{{CartPriceRuleSection.customerGroupsToggle}}" stepKey="clickCustomerGroupsToggle" after="selectWebsites"/> |
52 |
| - <click selector="{{CartPriceRuleSection.selectAll}}" stepKey="clickSelectAll" after="clickCustomerGroupsToggle"/> |
53 |
| - <click selector="{{CartPriceRuleSection.doneButton}}" stepKey="clickDoneButton" after="clickSelectAll"/> |
| 50 | + <selectOption selector="{{AdminCartPriceRulesFormSection.customerGroups}}" userInput="General" stepKey="selectCustomerGroup"/> |
54 | 51 | <!-- Choose coupon type auto -->
|
55 | 52 | <selectOption selector="{{AdminCartPriceRulesFormSection.coupon}}" userInput="Auto" stepKey="selectCouponType"/>
|
56 |
| - <!-- Verify `Use Auto Generation` checkbox not visible while `Uses per Coupon` field there for coupon type auto--> |
57 |
| - <dontSeeCheckboxIsChecked selector="{{AdminCartPriceRulesFormSection.useAutoGeneration}}" stepKey="tickAutoGeneration"/> |
58 | 53 | <fillField selector="{{AdminCartPriceRulesFormSection.userPerCoupon}}" userInput="1" stepKey="fillUsesPerCoupon"/>
|
59 | 54 | <!--Open Actions tabs, fill required field and save the cart price rule-->
|
60 | 55 | <click selector="{{AdminCartPriceRulesFormSection.actionsHeader}}" stepKey="clickToExpandActions"/>
|
|
108 | 103 |
|
109 | 104 | <!-- Go to Checkout and Click Place Order button -->
|
110 | 105 | <actionGroup ref="StorefrontClickProceedToCheckoutActionGroup" stepKey="clickProceedToCheckout"/>
|
111 |
| - <click selector="{{CheckoutShippingMethodsSection.checkShippingMethodByName('Flat Rate')}}" |
112 |
| - stepKey="selectFlatShippingMethod"/> |
| 106 | + <waitForPageLoad time="5" stepKey="waitForPageLoad2"/> |
| 107 | + <click selector="{{CheckoutShippingMethodsSection.checkShippingMethodByName('Flat Rate')}}" stepKey="selectFlatShippingMethod"/> |
113 | 108 | <waitForLoadingMaskToDisappear stepKey="waitForLoadingMask"/>
|
114 | 109 | <actionGroup ref="StorefrontCheckoutClickNextButtonActionGroup" stepKey="clickNext"/>
|
115 | 110 | <!-- Checkout select Check/Money Order payment -->
|
|
124 | 119 |
|
125 | 120 | <!-- Open the Product Page again, add the product to Cart, go to Shopping Cart and Apply the second coupon code -->
|
126 | 121 | <amOnPage url="{{StorefrontProductPage.url($$createSimpleProduct.custom_attributes[url_key]$$)}}" stepKey="openProductPage2"/>
|
127 |
| - <waitForPageLoad stepKey="waitForPageLoad2"/> |
| 122 | + <waitForPageLoad stepKey="waitForPageLoad3"/> |
128 | 123 | <actionGroup ref="ApplyCartRuleOnStorefrontActionGroup" stepKey="applyCartPriceRule2">
|
129 | 124 | <argument name="product" value="$$createSimpleProduct$$"/>
|
130 | 125 | <argument name="couponCode" value="{$couponCode2}"/>
|
|
0 commit comments