|
37 | 37 | <actionGroup ref="LoginToStorefrontActionGroup" stepKey="storefrontCustomerLogin"> |
38 | 38 | <argument name="Customer" value="$$createCustomer$$"/> |
39 | 39 | </actionGroup> |
40 | | - <!-- Go to category --> |
41 | | - <actionGroup ref="StorefrontNavigateCategoryPageActionGroup" stepKey="navigateToCategoryPage"> |
42 | | - <argument name="category" value="$$testCategory$$"/> |
43 | | - </actionGroup> |
44 | | - <waitForPageLoad stepKey="waitForCatalogPageLoad"/> |
45 | | - |
46 | | - |
47 | | - <!-- Open product detail page--> |
48 | | - <click selector="{{StorefrontCategoryProductSection.ProductTitleByName($testProduct.name$)}}" stepKey="openProduct"/> |
49 | | - <waitForPageLoad time="30" stepKey="waitForFirstProduct"/> |
50 | 40 |
|
51 | | - <!-- add to cart --> |
52 | | - <actionGroup ref="AddToCartFromStorefrontProductPageActionGroup" stepKey="addToCartFromStorefrontProductPage"> |
53 | | - <argument name="productName" value="$$testProduct.name$$"/> |
| 41 | + <!-- Customer placed order from storefront with payment method --> |
| 42 | + <actionGroup ref="AddSimpleProductToCartActionGroup" stepKey="addProductToCart"> |
| 43 | + <argument name="product" value="$testProduct$"/> |
54 | 44 | </actionGroup> |
55 | | - |
56 | | - <!-- click on cart icon and proceed to checkout --> |
57 | 45 | <actionGroup ref="GoToCheckoutFromMinicartActionGroup" stepKey="goToCheckoutFromMinicart"/> |
| 46 | + <actionGroup ref="StorefrontSetShippingMethodActionGroup" stepKey="setShippingMethodFlatRate"/> |
| 47 | + <actionGroup ref="StorefrontCheckoutClickNextOnShippingStepActionGroup" stepKey="goToCheckoutPaymentStep"/> |
58 | 48 |
|
59 | | - |
60 | | - <!-- Steps to perform checkout --> |
61 | | - <actionGroup ref="StorefrontGuestCheckoutProceedToPaymentStepActionGroup" stepKey="clickNext"/> |
62 | | - <waitForElement selector="{{CheckoutPaymentSection.paymentSectionTitle}}" stepKey="waitForPaymentSectionLoaded"/> |
63 | | - <waitForElementVisible selector="{{CheckoutPaymentSection.placeOrder}}" stepKey="waitForPlaceOrderButton"/> |
64 | | - |
65 | | - <waitForElement selector="{{CheckoutPaymentSection.paymentSectionTitle}}" time="30" after="clickNext" stepKey="waitForPaymentSectionLoaded2"/> |
66 | | - <conditionalClick selector="{{CheckoutPaymentSection.checkMoneyOrderPayment}}" dependentSelector="{{CheckoutPaymentSection.billingAddress}}" visible="false" before="waitForPlaceOrderButton" stepKey="clickCheckMoneyOrderPayment"/> |
67 | | - |
68 | | - <click selector="{{CheckoutPaymentSection.placeOrder}}" stepKey="clickPlaceOrderButton"/> |
69 | | - <seeElement selector="{{CheckoutSuccessMainSection.success}}" stepKey="orderIsSuccessfullyPlaced"/> |
| 49 | + <actionGroup ref="CheckoutPlaceOrderActionGroup" stepKey="clickOnPlaceOrder"> |
| 50 | + <argument name="orderNumberMessage" value="CONST.successCheckoutOrderNumberMessage"/> |
| 51 | + <argument name="emailYouMessage" value="CONST.successCheckoutEmailYouMessage"/> |
| 52 | + </actionGroup> |
70 | 53 |
|
71 | 54 | <!-- order number is captured for future validation --> |
72 | 55 | <grabTextFrom selector="{{CheckoutSuccessMainSection.orderNumber22}}" stepKey="getOrderNumber"/> |
| 56 | + |
| 57 | + |
73 | 58 | </test> |
74 | 59 | </tests> |
0 commit comments