Skip to content

Commit b392a1b

Browse files
ACQE-6372: Multishipping checkout flow with online shipping methods
Added comment in the test file to understand the each section
1 parent 6af8775 commit b392a1b

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

app/code/Magento/Shipping/Test/Mftf/Test/StorefrontMultishippingCheckoutWithOnlineShippingMethodTest.xml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@
4040
<actionGroup ref="LoginToStorefrontActionGroup" stepKey="loginToStorefrontAccount">
4141
<argument name="Customer" value="$customer$"/>
4242
</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>
4949
<!-- Open product page through category -->
5050
<actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="waitForSimpleProductPage">
5151
<argument name="productUrl" value="$$product.custom_attributes[url_key]$$"/>
@@ -63,29 +63,37 @@
6363
<argument name="addressOption1" value="3"/>
6464
<argument name="addressOption2" value="4"/>
6565
</actionGroup>
66+
<!-- Updating the address for shipping section -->
6667
<waitForElementClickable selector="{{SingleShippingSection.updateAddress}}" stepKey="waitForUpdateAddress"/>
6768
<click selector="{{SingleShippingSection.updateAddress}}" after="waitForUpdateAddress" stepKey="clickUpdateAddress"/>
6869
<waitForPageLoad after="clickUpdateAddress" stepKey="waitForClickOnUpdateAddress"/>
6970
<waitForElementClickable selector="{{AdminShipmentAddressInformationSection.goToShippingInformation}}" stepKey="waitForClickGoToShippingInformation"/>
7071
<click selector="{{AdminShipmentAddressInformationSection.goToShippingInformation}}" stepKey="clickGoToShippingInformation"/>
7172
<waitForPageLoad after="clickGoToShippingInformation" stepKey="waitForShippingInformation"/>
73+
<!-- Selecting shipping method based on the address -->
7274
<waitForElementClickable selector="{{AdminShipmentAddressInformationSection.selectShippingMethodBasedOnAddress('Culver City', 'Federal Express', 'Ground')}}" stepKey="waitForSelectShippingMethodBasedOnAddress"/>
7375
<click selector="{{AdminShipmentAddressInformationSection.selectShippingMethodBasedOnAddress('Culver City', 'Federal Express', 'Ground')}}" stepKey="clickToSelectFederalExpressMethod"/>
7476
<click selector="{{AdminShipmentAddressInformationSection.selectShippingMethodBasedOnAddress('Germany', 'DHL', 'Express easy')}}" stepKey="clickToSelectDHLMethod"/>
7577
<click selector="{{AdminShipmentAddressInformationSection.selectShippingMethodBasedOnAddress('London', 'United Parcel Service', 'UPS Worldwide Expedited')}}" stepKey="clickToSelectUPSMethod"/>
7678
<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 -->
7780
<waitForElementClickable selector="{{AdminShipmentAddressInformationSection.goToBillingInfo}}" stepKey="waitForGoToBillingInfoButton"/>
7881
<click selector="{{AdminShipmentAddressInformationSection.goToBillingInfo}}" stepKey="goToBillingInformation"/>
82+
<!-- Select check money payment method -->
7983
<actionGroup ref="CheckoutSelectCheckMoneyOrderPaymentActionGroup" stepKey="selectPaymentMethod"/>
84+
<!-- Go to review order page -->
8085
<waitForElementClickable selector="{{AdminShipmentAddressInformationSection.goToReviewOrder}}" stepKey="waitForGoToReviewOrder"/>
8186
<click selector="{{AdminShipmentAddressInformationSection.goToReviewOrder}}" stepKey="goToReviewOrder"/>
87+
<!-- Verify the address/shipping data before place order -->
8288
<waitForElementVisible selector="{{AdminShipmentAddressInformationSection.reviewOrderInfo('Culver City', 'Ground')}}" stepKey="waitForFirstProductReviewOrderInformation"/>
8389
<waitForElementVisible selector="{{AdminShipmentAddressInformationSection.reviewOrderInfo('Germany', 'Express easy')}}" stepKey="waitForSecondProductReviewOrderInformation"/>
8490
<waitForElementVisible selector="{{AdminShipmentAddressInformationSection.reviewOrderInfo('London', 'UPS Worldwide Expedited')}}" stepKey="waitForThirdProductReviewOrderInformation"/>
8591
<waitForElementVisible selector="{{AdminShipmentAddressInformationSection.reviewOrderInfo('New York', 'Library Mail Parcel')}}" stepKey="waitForFourthProductReviewOrderInformation"/>
8692
<waitForElementClickable selector="{{AdminShipmentAddressInformationSection.placeOrder}}" stepKey="waitForPlaceOrder"/>
93+
<!-- Place order and verify success message -->
8794
<click selector="{{AdminShipmentAddressInformationSection.placeOrder}}" stepKey="placeOrder"/>
8895
<waitForText selector="{{AdminShipmentAddressInformationSection.successTitle}}" userInput="Thank you for your purchase!" stepKey="waitForLoadSuccessPage"/>
96+
<!-- Grabbing order number and open order info page -->
8997
<grabTextFrom selector="{{AdminShipmentAddressInformationSection.multiCheckoutOrderId('1')}}" stepKey="grabOrderIdForFirstOrder"/>
9098
<executeJS function="var orderID = '{$grabOrderIdForFirstOrder}'.replace(/\D|^0+/g, ''); return (orderID);" stepKey="firstOrderID"/>
9199
<grabTextFrom selector="{{AdminShipmentAddressInformationSection.multiCheckoutOrderId('2')}}" stepKey="grabOrderIdForSecondOrder"/>

0 commit comments

Comments
 (0)