|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | + /** |
| 4 | + * Copyright © Magento, Inc. All rights reserved. |
| 5 | + * See COPYING.txt for license details. |
| 6 | + */ |
| 7 | +--> |
| 8 | + |
| 9 | +<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 10 | + <test name="StorefrontMultishippingUpdateProductQtyTest"> |
| 11 | + <annotations> |
| 12 | + <features value="Multishipping"/> |
| 13 | + <stories value="Checkout with multiple addresses."/> |
| 14 | + <title value="Update Product Quantity on Ship to Multiple Addresses Page."/> |
| 15 | + <description value="Verify customer will see correct product quantity after return to Ship to Multiple Addresses from Shipping information page."/> |
| 16 | + <severity value="MAJOR"/> |
| 17 | + <testCaseId value="MC-41697"/> |
| 18 | + <useCaseId value="MC-40021"/> |
| 19 | + <group value="multishipping"/> |
| 20 | + </annotations> |
| 21 | + |
| 22 | + <before> |
| 23 | + <createData entity="SimpleProduct2" stepKey="product"/> |
| 24 | + <createData entity="Simple_US_CA_Customer" stepKey="customer"/> |
| 25 | + </before> |
| 26 | + <after> |
| 27 | + <deleteData createDataKey="product" stepKey="deleteProduct"/> |
| 28 | + <actionGroup ref="StorefrontCustomerLogoutActionGroup" stepKey="customerLogout"/> |
| 29 | + <deleteData createDataKey="customer" stepKey="deleteCustomer"/> |
| 30 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="logoutFromAdmin"/> |
| 31 | + </after> |
| 32 | + |
| 33 | + <actionGroup ref="LoginToStorefrontActionGroup" stepKey="loginToStorefrontAccount"> |
| 34 | + <argument name="Customer" value="$customer$"/> |
| 35 | + </actionGroup> |
| 36 | + <actionGroup ref="StorefrontOpenProductEntityPageActionGroup" stepKey="navigateToSimpleProductDetailsPage"> |
| 37 | + <argument name="product" value="$product$"/> |
| 38 | + </actionGroup> |
| 39 | + <actionGroup ref="StorefrontAddProductToCartWithQtyActionGroup" stepKey="addSimpleProductToCart"> |
| 40 | + <argument name="productQty" value="2"/> |
| 41 | + </actionGroup> |
| 42 | + <actionGroup ref="StorefrontOpenCartFromMinicartActionGroup" stepKey="openCart"/> |
| 43 | + <actionGroup ref="StorefrontCheckoutWithMultipleAddressesActionGroup" stepKey="checkoutWithMultipleAddresses"/> |
| 44 | + <actionGroup ref="StorefrontChangeMultishippingItemQtyActionGroup" stepKey="setProductQuantity"> |
| 45 | + <argument name="quantity" value="2"/> |
| 46 | + </actionGroup> |
| 47 | + <actionGroup ref="StorefrontNavigateToShippingInformationPageActionGroup" stepKey="navigateToShippingInformation"/> |
| 48 | + <moveBack stepKey="moveBackToShippingInformation"/> |
| 49 | + <actionGroup ref="AssertStorefrontMultishippingAddressAndItemActionGroup" stepKey="verifyLine1Qty"> |
| 50 | + <argument name="productName" value="$product.name$"/> |
| 51 | + </actionGroup> |
| 52 | + <actionGroup ref="AssertStorefrontMultishippingAddressAndItemActionGroup" stepKey="verifyLine2Qty"> |
| 53 | + <argument name="sequenceNumber" value="2"/> |
| 54 | + <argument name="productName" value="$product.name$"/> |
| 55 | + </actionGroup> |
| 56 | + <actionGroup ref="AssertStorefrontMultishippingAddressAndItemActionGroup" stepKey="verifyLine3Qty"> |
| 57 | + <argument name="sequenceNumber" value="3"/> |
| 58 | + <argument name="productName" value="$product.name$"/> |
| 59 | + </actionGroup> |
| 60 | + </test> |
| 61 | +</tests> |
0 commit comments