|
41 | 41 | <actionGroup ref="logout" stepKey="logout"/>
|
42 | 42 | </after>
|
43 | 43 |
|
44 |
| - <!-- Add simple product to cart --> |
| 44 | + <!-- Go to Storefront as Guest and add simple product to cart --> |
45 | 45 | <actionGroup ref="AddSimpleProductToCart" stepKey="addProductToCart">
|
46 | 46 | <argument name="product" value="$$createProduct$$"/>
|
47 | 47 | </actionGroup>
|
48 | 48 |
|
49 |
| - <!-- Navigate to checkout --> |
| 49 | + <!-- Go to Checkout --> |
50 | 50 | <actionGroup ref="GoToCheckoutFromMinicartActionGroup" stepKey="goToCheckoutFromMinicart"/>
|
51 | 51 |
|
52 |
| - <!-- Fill shipping address --> |
| 52 | + <!-- Fill all required fields with valid data and select Flat Rate, price = 5, shipping --> |
53 | 53 | <actionGroup ref="GuestCheckoutFillingShippingSectionActionGroup" stepKey="guestCheckoutFillingShipping">
|
54 | 54 | <argument name="shippingMethod" value="Flat Rate"/>
|
55 | 55 | </actionGroup>
|
56 | 56 |
|
57 |
| - <!-- Apply discount to order --> |
| 57 | + <!-- Click Apply Discount Code: section is expanded. Input promo code, apply and see success message --> |
58 | 58 | <actionGroup ref="StorefrontApplyDiscountCodeActionGroup" stepKey="applyCoupon">
|
59 | 59 | <argument name="discountCode" value="$$createCouponForCartPriceRule.code$$"/>
|
60 | 60 | </actionGroup>
|
61 | 61 |
|
| 62 | + <!-- Apply button is disappeared --> |
| 63 | + <dontSeeElement selector="{{DiscountSection.ApplyCodeBtn}}" stepKey="dontSeeApplyButton"/> |
| 64 | + |
| 65 | + <!-- Cancel coupon button is appeared --> |
| 66 | + <seeElement selector="{{DiscountSection.cancelCouponBtn}}" stepKey="seeCancelCouponButton"/> |
| 67 | + |
| 68 | + <!-- Order summary contains information about applied code --> |
| 69 | + <seeElement selector="{{CheckoutPaymentSection.discount}}" stepKey="seeDiscountCouponInSummaryBlock"/> |
| 70 | + <see selector="{{CheckoutPaymentSection.discountPrice}}" userInput="-$5.00" stepKey="seeDiscountPrice"/> |
| 71 | + |
62 | 72 | <!-- Select payment solution -->
|
63 | 73 | <actionGroup ref="CheckoutSelectCheckMoneyOrderPaymentActionGroup" stepKey="clickCheckMoneyOrderPayment"/>
|
64 | 74 |
|
65 |
| - <!-- Place Order --> |
| 75 | + <!-- Place Order: order is successfully placed --> |
66 | 76 | <actionGroup ref="ClickPlaceOrderActionGroup" stepKey="clickPlaceOrder"/>
|
67 | 77 | <grabTextFrom selector="{{CheckoutSuccessMainSection.orderNumber}}" stepKey="grabOrderNumber"/>
|
68 | 78 |
|
69 | 79 | <!-- Login as admin -->
|
70 | 80 | <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
|
71 | 81 |
|
72 |
| - <!-- Check total in created order --> |
| 82 | + <!-- Verify total on order page --> |
73 | 83 | <actionGroup ref="filterOrderGridById" stepKey="filterOrderById">
|
74 | 84 | <argument name="orderId" value="$grabOrderNumber"/>
|
75 | 85 | </actionGroup>
|
|
0 commit comments