-
Notifications
You must be signed in to change notification settings - Fork 247
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/store-pickup' into MSI-2182-Sour…
…ce-Entity-expansion-with-Pickup-Location-attributes
- Loading branch information
Showing
216 changed files
with
10,288 additions
and
748 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
149 changes: 149 additions & 0 deletions
149
...tedForWholeOrderWithSimpleProductOnDefaultStockAfterFullInvoiceAndShipmentInAdminTest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,149 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
|
||
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> | ||
<test name="CreditMemoCreatedForWholeOrderWithSimpleProductOnDefaultStockAfterFullInvoiceAndShipmentInAdminTest"> | ||
<annotations> | ||
<stories value="MSI Credit Memo"/> | ||
<title value="Credit memo created for whole order with Simple product on Default stock after full invoice and shipment in Admin"/> | ||
<description value="Credit memo created for whole order with Simple product on Default stock after full invoice and shipment in Admin"/> | ||
<testCaseId value="MSI-1949"/> | ||
<severity value="BLOCKER"/> | ||
<group value="msi"/> | ||
<group value="multi_mode"/> | ||
</annotations> | ||
|
||
<before> | ||
<createData entity="MsiCustomer1" stepKey="createCustomer"/> | ||
<createData entity="BasicMsiStock1" stepKey="createStock"/> | ||
<createData entity="FullSource1" stepKey="createSource"/> | ||
<createData entity="SourceStockLinked1" stepKey="linkSourceStock"> | ||
<requiredEntity createDataKey="createStock"/> | ||
<requiredEntity createDataKey="createSource"/> | ||
</createData> | ||
<createData entity="SimpleSubCategory" stepKey="simpleCategory"/> | ||
<createData entity="SimpleProduct" stepKey="simpleProduct"> | ||
<field key="qty">100.00</field> | ||
<requiredEntity createDataKey="simpleCategory"/> | ||
</createData> | ||
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> | ||
<waitForPageLoad stepKey="waitForDashboardLoad"/> | ||
</before> | ||
<after> | ||
<actionGroup ref="logout" stepKey="logoutOfAdmin"/> | ||
<deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/> | ||
<deleteData createDataKey="createStock" stepKey="deleteStock"/> | ||
<deleteData createDataKey="simpleCategory" stepKey="deleteCategory"/> | ||
<deleteData createDataKey="simpleProduct" stepKey="deleteProduct"/> | ||
</after> | ||
|
||
<!--Login To storefront as Customer--> | ||
<comment userInput="Login to storefront as customer." stepKey="loginToStorefrontComment"/> | ||
<actionGroup ref="LoginToStorefrontActionGroup" stepKey="loginToStorefront"> | ||
<argument name="Customer" value="$$createCustomer$$"/> | ||
</actionGroup> | ||
|
||
<!--Purchase product once logged in--> | ||
<comment userInput="Purchase 5 simple product" stepKey="purchaseSimpleProductComment"/> | ||
<amOnPage url="{{StorefrontCategoryPage.url($$simpleCategory.name$$)}}" stepKey="navigateToCategoryPage"/> | ||
<moveMouseOver selector="{{StorefrontCategoryProductSection.ProductInfoByName($$simpleProduct.name$$)}}" stepKey="moveMouseOverProduct" /> | ||
<click selector="{{StorefrontCategoryProductSection.ProductAddToCartByName($$simpleProduct.name$$)}}" stepKey="clickAddToCart" /> | ||
<waitForElement selector="{{StorefrontMessagesSection.messageProductAddedToCart($$simpleProduct.name$$)}}" time="30" stepKey="assertMessage"/> | ||
<waitForText userInput="1" selector="{{StorefrontMinicartSection.productCount}}" time="30" stepKey="assertProductCount"/> | ||
<conditionalClick selector="{{StorefrontMinicartSection.showCart}}" dependentSelector="{{StorefrontMinicartSection.miniCartOpened}}" visible="false" stepKey="openMiniCart"/> | ||
<waitForElementVisible selector="{{StorefrontMinicartSection.viewAndEditCart}}" stepKey="waitForViewAndEditCartVisible"/> | ||
<clearField selector="{{StorefrontMinicartSection.itemQuantity($$simpleProduct.name$$)}}" stepKey="clearField"/> | ||
<fillField selector="{{StorefrontMinicartSection.itemQuantity($$simpleProduct.name$$)}}" userInput="5" stepKey="setProductQtyToFiftyInMiniCart"/> | ||
<click selector="{{StorefrontMinicartSection.itemQuantityUpdate($$simpleProduct.name$$)}}" stepKey="updateQtyInMiniCart"/> | ||
<click selector="{{StorefrontMinicartSection.goToCheckout}}" stepKey="goToCheckout"/> | ||
<waitForPageLoad stepKey="waitForPaymentSelectionPageLoad"/> | ||
<click selector=".continue" stepKey="clickOnNextCheckout"/> | ||
<waitForPageLoad stepKey="waitForPageLoadCheckout"/> | ||
<actionGroup ref="CheckoutSelectCheckMoneyOrderPaymentActionGroup" stepKey="selectCheckMoneyOrderPayment"/> | ||
<waitForElement selector="{{CheckoutPaymentSection.placeOrder}}" time="30" stepKey="waitForPlaceOrderButtonVisible"/> | ||
<see selector="{{CheckoutPaymentSection.billingAddress}}" userInput="{{US_Address_TX.street[0]}}" stepKey="chooseBillingAddress"/> | ||
<click selector="{{CheckoutPaymentSection.placeOrder}}" stepKey="placeOrder"/> | ||
<waitForPageLoad stepKey="waitUntilOrderPlaced"/> | ||
<grabTextFrom selector="{{CheckoutSuccessMainSection.orderNumber22}}" stepKey="grabOrderNumber"/> | ||
<see selector="{{CheckoutSuccessMainSection.success}}" userInput="Your order number is:" stepKey="checkOrderPlaceSuccessMessage"/> | ||
|
||
<!--Admin Area Check ordered quantity--> | ||
<comment userInput="Admin - Check ordered quantity" stepKey="AdminCheckOrderedQuantity"/> | ||
<amOnPage url="{{AdminOrdersPage.url}}" stepKey="navigateToOrderListPage"/> | ||
<waitForLoadingMaskToDisappear stepKey="waitOrderListPageLoad"/> | ||
<fillField selector="{{AdminOrdersGridSection.search}}" userInput="{$grabOrderNumber}" stepKey="searchOrder"/> | ||
<click selector="{{AdminOrdersGridSection.submitSearch}}" stepKey="submitSearch"/> | ||
<waitForLoadingMaskToDisappear stepKey="waitFilteredOrderListPageLoad"/> | ||
<click selector="{{AdminOrdersGridSection.firstRow}}" stepKey="navigateToOrderViewPage"/> | ||
<waitForElementVisible selector="{{AdminOrderItemsOrderedSection.itemQty('1')}}" stepKey="waitForViewOrderedQuantity"/> | ||
<see selector="{{AdminOrderItemsOrderedSection.itemQty('1')}}" userInput="Ordered 5" stepKey="orderedQuantity"/> | ||
|
||
<!--Admin Area Check source quantity and salable quantity--> | ||
<comment userInput="Admin - Check Source quantity and salable quantity after order placed" stepKey="AdminCheckQuantityAfterOrderPlaced"/> | ||
<amOnPage url="{{AdminProductIndexPage.url}}" stepKey="navigateToProductIndexPageForCheckProductQtyAfterPlaceOrder"/> | ||
<actionGroup ref="AdminGridFilterSearchResultsByInput" stepKey="findVirtualProductBySkuToCheckQtyAfterPlaceOrder"> | ||
<argument name="selector" value="AdminProductGridFilterSection.skuFilter"/> | ||
<argument name="value" value="$$simpleProduct.sku$$"/> | ||
</actionGroup> | ||
<see selector="{{AdminProductGridSection.productQtyPerSource('1',_defaultSource.name)}}" userInput="100" stepKey="checkProductSourceQtyAfterPlaceOrder"/> | ||
<see selector="{{AdminProductGridSection.productSalableQty('1',_defaultStock.name)}}" userInput="95" stepKey="checkSalableQtyAfterPlaceOrder"/> | ||
|
||
<!--Admin Area Process Shipping--> | ||
<comment userInput="Admin - Ship order" stepKey="AdminShipOrder"/> | ||
<amOnPage url="{{AdminOrdersPage.url}}" stepKey="onOrdersPageToCreateShipment"/> | ||
<waitForLoadingMaskToDisappear stepKey="waitForOrdersPageLoadingMask"/> | ||
<fillField selector="{{AdminOrdersGridSection.search}}" userInput="{$grabOrderNumber}" stepKey="searchOrderNum"/> | ||
<click selector="{{AdminOrdersGridSection.submitSearch}}" stepKey="submitSearchShipping"/> | ||
<waitForLoadingMaskToDisappear stepKey="waitForSubmitSearchLoadingMask"/> | ||
<click selector="{{AdminOrdersGridSection.firstRow}}" stepKey="clickOrderRow"/> | ||
<click selector="{{AdminOrderDetailsMainActionsSection.ship}}" stepKey="clickShip"/> | ||
<waitForLoadingMaskToDisappear stepKey="waitForShipLoadingMask"/> | ||
<click selector="{{AdminShipmentMainActionsSection.submitShipment}}" stepKey="submitShipment"/> | ||
<see selector="{{AdminOrderDetailsMessagesSection.successMessage}}" userInput="The shipment has been created." stepKey="seeShipmentCreateSuccess"/> | ||
|
||
<!--Admin Area Process Full Invoice--> | ||
<comment userInput="Admin - Process invoice for full order" stepKey="InvoiceFullOrder"/> | ||
<amOnPage url="{{AdminOrdersPage.url}}" stepKey="onOrdersPageToProcessInvoice"/> | ||
<waitForLoadingMaskToDisappear stepKey="waitForOrdersPageLoadingMaskInvoice"/> | ||
<fillField selector="{{AdminOrdersGridSection.search}}" userInput="{$grabOrderNumber}" stepKey="searchOrderNumInvoice"/> | ||
<click selector="{{AdminOrdersGridSection.submitSearch}}" stepKey="submitSearchInvoice"/> | ||
<waitForLoadingMaskToDisappear stepKey="waitForSubmitSearchLoadingMaskGridForInvoice"/> | ||
<click selector="{{AdminOrdersGridSection.firstRow}}" stepKey="clickOrderRowInvoice"/> | ||
<click selector="{{AdminOrderDetailsMainActionsSection.invoice}}" stepKey="clickInvoice"/> | ||
<click selector="{{AdminInvoiceMainActionsSection.submitInvoice}}" stepKey="clickSubmitInvoice"/> | ||
<waitForPageLoad time="60" stepKey="waitForPageLoadSubmitInvoice"/> | ||
<scrollToTopOfPage stepKey="scrollToTopMessage"/> | ||
<waitForPageLoad stepKey="waitForPageLoadSuccessMessage"/> | ||
<see selector="{{AdminOrderDetailsMessagesSection.successMessage}}" userInput="The invoice has been created." stepKey="checkSuccessMessage"/> | ||
|
||
|
||
<!--Admin Area Create Full Credit Memo--> | ||
<comment userInput="Admin - Create credit memo for full order" stepKey="AdminCreateCreditMemoFullOrder"/> | ||
<amOnPage url="{{AdminOrdersPage.url}}" stepKey="onOrdersPageToCreateCreditMemo"/> | ||
<waitForLoadingMaskToDisappear stepKey="waitForOrdersPageLoadingMaskCreditMemo"/> | ||
<fillField selector="{{AdminOrdersGridSection.search}}" userInput="{$grabOrderNumber}" stepKey="searchOrderNumCreditMemo"/> | ||
<click selector="{{AdminOrdersGridSection.submitSearch}}" stepKey="submitSearchCreditMemo"/> | ||
<waitForLoadingMaskToDisappear stepKey="waitForSubmitSearchLoadingMaskCreditMemo"/> | ||
<click selector="{{AdminOrdersGridSection.firstRow}}" stepKey="clickOrderRowCreditMemo"/> | ||
<click selector="{{AdminOrderDetailsMainActionsSection.creditMemo}}" stepKey="clickCreditMemo"/> | ||
<click selector="{{AdminCreditMemoItemsSection.itemReturnToStock('1')}}" stepKey="returnToStockCheckbox"/> | ||
<click selector="{{AdminCreditMemoTotalSection.submitRefundOffline}}" stepKey="clickSubmit"/> | ||
|
||
|
||
<!--Admin Area Check quantities after Credit Memo--> | ||
<comment userInput="Admin - Check Source quantity and salable quantity after credit memo" stepKey="AdminCheckQuantityAfterCreditMemo"/> | ||
<amOnPage url="{{AdminProductIndexPage.url}}" stepKey="navigateToProductIndexPageForCheckProductQtyAfterCreditMemo"/> | ||
<actionGroup ref="AdminGridFilterSearchResultsByInput" stepKey="findVirtualProductBySkuToCheckQtyAfterCreditMemo"> | ||
<argument name="selector" value="AdminProductGridFilterSection.skuFilter"/> | ||
<argument name="value" value="$$simpleProduct.sku$$"/> | ||
</actionGroup> | ||
<see selector="{{AdminProductGridSection.productQtyPerSource('1',_defaultSource.name)}}" userInput="100" stepKey="checkProductSourceQtyAfterCreditMemo"/> | ||
<see selector="{{AdminProductGridSection.productSalableQty('1',_defaultStock.name)}}" userInput="100" stepKey="checkSalableQtyAfterCreditMemo"/> | ||
</test> | ||
</tests> |
Oops, something went wrong.