|
76 | 76 | <argument name="selectOption" value="4"/> |
77 | 77 | </actionGroup> |
78 | 78 | <!-- Updating the address for shipping section --> |
79 | | - <waitForElementClickable selector="{{SingleShippingSection.updateAddress}}" stepKey="waitForUpdateAddress"/> |
80 | | - <click selector="{{SingleShippingSection.updateAddress}}" after="waitForUpdateAddress" stepKey="clickUpdateAddress"/> |
81 | | - <waitForPageLoad after="clickUpdateAddress" stepKey="waitForClickOnUpdateAddress"/> |
82 | | - <waitForElementClickable selector="{{AdminShipmentAddressInformationSection.goToShippingInformation}}" stepKey="waitForClickGoToShippingInformation"/> |
83 | | - <click selector="{{AdminShipmentAddressInformationSection.goToShippingInformation}}" stepKey="clickGoToShippingInformation"/> |
84 | | - <waitForPageLoad after="clickGoToShippingInformation" stepKey="waitForShippingInformation"/> |
| 79 | + <actionGroup ref="StorefrontUpdateShippingAddressActionGroup" stepKey="updateShippingAddressActionGroup"/> |
85 | 80 | <!-- Selecting shipping method based on the address --> |
86 | | - <waitForElementClickable selector="{{AdminShipmentAddressInformationSection.selectShippingMethodBasedOnAddress('Culver City', 'Federal Express', 'Ground')}}" stepKey="waitForSelectShippingMethodBasedOnAddress"/> |
87 | | - <click selector="{{AdminShipmentAddressInformationSection.selectShippingMethodBasedOnAddress('Culver City', 'Federal Express', 'Ground')}}" stepKey="clickToSelectFederalExpressMethod"/> |
88 | | - <click selector="{{AdminShipmentAddressInformationSection.selectShippingMethodBasedOnAddress('Germany', 'DHL', 'Express easy')}}" stepKey="clickToSelectDHLMethod"/> |
89 | | - <click selector="{{AdminShipmentAddressInformationSection.selectShippingMethodBasedOnAddress('London', 'United Parcel Service', 'UPS Worldwide Expedited')}}" stepKey="clickToSelectUPSMethod"/> |
90 | | - <click selector="{{AdminShipmentAddressInformationSection.selectShippingMethodBasedOnAddress('New York', 'United States Postal Service', 'Library Mail Parcel')}}" stepKey="clickToSelectUSPSMethod"/> |
| 81 | + <actionGroup ref="StorefrontSelectShippingMethodBasedOnAddressActionGroup" stepKey="selectShippingMethodBasedOnAddressActionGroup"/> |
91 | 82 | <!-- Click on the billing information button to save selected data --> |
92 | 83 | <waitForElementClickable selector="{{AdminShipmentAddressInformationSection.goToBillingInfo}}" stepKey="waitForGoToBillingInfoButton"/> |
93 | 84 | <click selector="{{AdminShipmentAddressInformationSection.goToBillingInfo}}" stepKey="goToBillingInformation"/> |
|
97 | 88 | <waitForElementClickable selector="{{AdminShipmentAddressInformationSection.goToReviewOrder}}" stepKey="waitForGoToReviewOrder"/> |
98 | 89 | <click selector="{{AdminShipmentAddressInformationSection.goToReviewOrder}}" stepKey="goToReviewOrder"/> |
99 | 90 | <!-- Verify the address/shipping data before place order --> |
100 | | - <waitForElementVisible selector="{{AdminShipmentAddressInformationSection.reviewOrderInfo('Culver City', 'Ground')}}" stepKey="waitForFirstProductReviewOrderInformation"/> |
101 | | - <waitForElementVisible selector="{{AdminShipmentAddressInformationSection.reviewOrderInfo('Germany', 'Express easy')}}" stepKey="waitForSecondProductReviewOrderInformation"/> |
102 | | - <waitForElementVisible selector="{{AdminShipmentAddressInformationSection.reviewOrderInfo('London', 'UPS Worldwide Expedited')}}" stepKey="waitForThirdProductReviewOrderInformation"/> |
103 | | - <waitForElementVisible selector="{{AdminShipmentAddressInformationSection.reviewOrderInfo('New York', 'Library Mail Parcel')}}" stepKey="waitForFourthProductReviewOrderInformation"/> |
104 | | - <waitForElementClickable selector="{{AdminShipmentAddressInformationSection.placeOrder}}" stepKey="waitForPlaceOrder"/> |
| 91 | + <actionGroup ref="StorefrontVerifyOrderInformationBeforePlacingOrderActionGroup" stepKey="verifyOrderInformationBeforePlacingOrderActionGroup"/> |
105 | 92 | <!-- Place order and verify success message --> |
106 | 93 | <click selector="{{AdminShipmentAddressInformationSection.placeOrder}}" stepKey="placeOrder"/> |
107 | 94 | <waitForText selector="{{AdminShipmentAddressInformationSection.successTitle}}" userInput="Thank you for your purchase!" stepKey="waitForLoadSuccessPage"/> |
|
0 commit comments