|
40 | 40 | <actionGroup ref="LoginToStorefrontActionGroup" stepKey="loginToStorefrontAccount">
|
41 | 41 | <argument name="Customer" value="$customer$"/>
|
42 | 42 | </actionGroup>
|
43 |
| - <actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanInvalidatedCaches"> |
44 |
| - <argument name="tags" value="config full_page"/> |
45 |
| - </actionGroup> |
46 |
| - <actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindexPostChangingConfigurationSettings"> |
47 |
| - <argument name="indices" value="cataloginventory_stock catalog_product_price"/> |
48 |
| - </actionGroup> |
| 43 | + <actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanInvalidatedCaches"> |
| 44 | + <argument name="tags" value="config full_page"/> |
| 45 | + </actionGroup> |
| 46 | + <actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindexPostChangingConfigurationSettings"> |
| 47 | + <argument name="indices" value="cataloginventory_stock catalog_product_price"/> |
| 48 | + </actionGroup> |
49 | 49 | <!-- Open product page through category -->
|
50 | 50 | <actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="waitForSimpleProductPage">
|
51 | 51 | <argument name="productUrl" value="$$product.custom_attributes[url_key]$$"/>
|
|
63 | 63 | <argument name="addressOption1" value="3"/>
|
64 | 64 | <argument name="addressOption2" value="4"/>
|
65 | 65 | </actionGroup>
|
| 66 | + <!-- Updating the address for shipping section --> |
66 | 67 | <waitForElementClickable selector="{{SingleShippingSection.updateAddress}}" stepKey="waitForUpdateAddress"/>
|
67 | 68 | <click selector="{{SingleShippingSection.updateAddress}}" after="waitForUpdateAddress" stepKey="clickUpdateAddress"/>
|
68 | 69 | <waitForPageLoad after="clickUpdateAddress" stepKey="waitForClickOnUpdateAddress"/>
|
69 | 70 | <waitForElementClickable selector="{{AdminShipmentAddressInformationSection.goToShippingInformation}}" stepKey="waitForClickGoToShippingInformation"/>
|
70 | 71 | <click selector="{{AdminShipmentAddressInformationSection.goToShippingInformation}}" stepKey="clickGoToShippingInformation"/>
|
71 | 72 | <waitForPageLoad after="clickGoToShippingInformation" stepKey="waitForShippingInformation"/>
|
| 73 | + <!-- Selecting shipping method based on the address --> |
72 | 74 | <waitForElementClickable selector="{{AdminShipmentAddressInformationSection.selectShippingMethodBasedOnAddress('Culver City', 'Federal Express', 'Ground')}}" stepKey="waitForSelectShippingMethodBasedOnAddress"/>
|
73 | 75 | <click selector="{{AdminShipmentAddressInformationSection.selectShippingMethodBasedOnAddress('Culver City', 'Federal Express', 'Ground')}}" stepKey="clickToSelectFederalExpressMethod"/>
|
74 | 76 | <click selector="{{AdminShipmentAddressInformationSection.selectShippingMethodBasedOnAddress('Germany', 'DHL', 'Express easy')}}" stepKey="clickToSelectDHLMethod"/>
|
75 | 77 | <click selector="{{AdminShipmentAddressInformationSection.selectShippingMethodBasedOnAddress('London', 'United Parcel Service', 'UPS Worldwide Expedited')}}" stepKey="clickToSelectUPSMethod"/>
|
76 | 78 | <click selector="{{AdminShipmentAddressInformationSection.selectShippingMethodBasedOnAddress('New York', 'United States Postal Service', 'Library Mail Parcel')}}" stepKey="clickToSelectUSPSMethod"/>
|
| 79 | + <!-- Click on the billing information button to save selected data --> |
77 | 80 | <waitForElementClickable selector="{{AdminShipmentAddressInformationSection.goToBillingInfo}}" stepKey="waitForGoToBillingInfoButton"/>
|
78 | 81 | <click selector="{{AdminShipmentAddressInformationSection.goToBillingInfo}}" stepKey="goToBillingInformation"/>
|
| 82 | + <!-- Select check money payment method --> |
79 | 83 | <actionGroup ref="CheckoutSelectCheckMoneyOrderPaymentActionGroup" stepKey="selectPaymentMethod"/>
|
| 84 | + <!-- Go to review order page --> |
80 | 85 | <waitForElementClickable selector="{{AdminShipmentAddressInformationSection.goToReviewOrder}}" stepKey="waitForGoToReviewOrder"/>
|
81 | 86 | <click selector="{{AdminShipmentAddressInformationSection.goToReviewOrder}}" stepKey="goToReviewOrder"/>
|
| 87 | + <!-- Verify the address/shipping data before place order --> |
82 | 88 | <waitForElementVisible selector="{{AdminShipmentAddressInformationSection.reviewOrderInfo('Culver City', 'Ground')}}" stepKey="waitForFirstProductReviewOrderInformation"/>
|
83 | 89 | <waitForElementVisible selector="{{AdminShipmentAddressInformationSection.reviewOrderInfo('Germany', 'Express easy')}}" stepKey="waitForSecondProductReviewOrderInformation"/>
|
84 | 90 | <waitForElementVisible selector="{{AdminShipmentAddressInformationSection.reviewOrderInfo('London', 'UPS Worldwide Expedited')}}" stepKey="waitForThirdProductReviewOrderInformation"/>
|
85 | 91 | <waitForElementVisible selector="{{AdminShipmentAddressInformationSection.reviewOrderInfo('New York', 'Library Mail Parcel')}}" stepKey="waitForFourthProductReviewOrderInformation"/>
|
86 | 92 | <waitForElementClickable selector="{{AdminShipmentAddressInformationSection.placeOrder}}" stepKey="waitForPlaceOrder"/>
|
| 93 | + <!-- Place order and verify success message --> |
87 | 94 | <click selector="{{AdminShipmentAddressInformationSection.placeOrder}}" stepKey="placeOrder"/>
|
88 | 95 | <waitForText selector="{{AdminShipmentAddressInformationSection.successTitle}}" userInput="Thank you for your purchase!" stepKey="waitForLoadSuccessPage"/>
|
| 96 | + <!-- Grabbing order number and open order info page --> |
89 | 97 | <grabTextFrom selector="{{AdminShipmentAddressInformationSection.multiCheckoutOrderId('1')}}" stepKey="grabOrderIdForFirstOrder"/>
|
90 | 98 | <executeJS function="var orderID = '{$grabOrderIdForFirstOrder}'.replace(/\D|^0+/g, ''); return (orderID);" stepKey="firstOrderID"/>
|
91 | 99 | <grabTextFrom selector="{{AdminShipmentAddressInformationSection.multiCheckoutOrderId('2')}}" stepKey="grabOrderIdForSecondOrder"/>
|
|
0 commit comments