This repository has been archived by the owner on Dec 19, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3517 from magento-tsg/2.3-develop-mftf-pr9
[TSG] MFTF for 2.3 (pr9) (2.3.1)
- Loading branch information
Showing
34 changed files
with
358 additions
and
53 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
78 changes: 78 additions & 0 deletions
78
...gento/Bundle/Test/Mftf/Test/StorefrontAddBundleProductWithZeroPriceToShoppingCartTest.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,78 @@ | ||
<?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="StorefrontAddBundleProductWithZeroPriceToShoppingCartTest"> | ||
<annotations> | ||
<features value="Bundle"/> | ||
<stories value="Add Bundle product with zero price to shopping cart"/> | ||
<title value="Add Bundle product with zero price to shopping cart"/> | ||
<description value="Add Bundle product with zero price to shopping cart"/> | ||
<severity value="CRITICAL"/> | ||
<testCaseId value="MAGETWO-95167"/> | ||
<group value="bundle"/> | ||
</annotations> | ||
<before> | ||
<!--Enable freeShipping--> | ||
<createData entity="FreeShippinMethodConfig" stepKey="enableFreeShipping"/> | ||
<!--Create category--> | ||
<createData entity="SimpleSubCategory" stepKey="createSubCategory"/> | ||
<!--Create simple with zero price product--> | ||
<createData entity="ApiProductWithDescription" stepKey="apiSimple"> | ||
<field key="price">0</field> | ||
</createData> | ||
<!--Create Bundle product--> | ||
<createData entity="ApiBundleProductPriceViewRange" stepKey="apiBundleProduct"> | ||
<requiredEntity createDataKey="createSubCategory"/> | ||
</createData> | ||
<!--Create Attribute--> | ||
<createData entity="DropDownBundleOption" stepKey="bundleOption"> | ||
<requiredEntity createDataKey="apiBundleProduct"/> | ||
</createData> | ||
<createData entity="ApiBundleLink" stepKey="createBundleLink"> | ||
<requiredEntity createDataKey="apiBundleProduct"/> | ||
<requiredEntity createDataKey="bundleOption"/> | ||
<requiredEntity createDataKey="apiSimple"/> | ||
</createData> | ||
<magentoCLI command="indexer:reindex" stepKey="reindex"/> | ||
</before> | ||
<after> | ||
<createData entity="FreeShippinMethodDefault" stepKey="disableFreeShipping"/> | ||
<deleteData createDataKey="apiSimple" stepKey="deleteSimple"/> | ||
<deleteData createDataKey="apiBundleProduct" stepKey="deleteBundleProduct"/> | ||
<deleteData createDataKey="createSubCategory" stepKey="deleteCategory"/> | ||
<actionGroup ref="AdminOrdersGridClearFiltersActionGroup" stepKey="clearFilters"/> | ||
<actionGroup ref="logout" stepKey="logout"/> | ||
</after> | ||
<!--Open category page--> | ||
<amOnPage url="{{StorefrontCategoryPage.url($$createSubCategory.custom_attributes[url_key]$$)}}" stepKey="amOnCategoryPage"/> | ||
<!--Add bundle product to cart--> | ||
<actionGroup ref="StorefrontAddBundleProductFromCategoryToCartActionGroup" stepKey="addBundleProductToCart"> | ||
<argument name="productName" value="$$apiBundleProduct.name$$"/> | ||
</actionGroup> | ||
<actionGroup ref="GoToCheckoutFromMinicartActionGroup" stepKey="goToCheckoutFromMinicart"/> | ||
|
||
<!--Place order--> | ||
<actionGroup ref="GuestCheckoutFillingShippingSectionActionGroup" stepKey="guestCheckoutFillingShipping"> | ||
<argument name="shippingMethod" value="Free Shipping"/> | ||
</actionGroup> | ||
<actionGroup ref="ClickPlaceOrderActionGroup" stepKey="checkoutPlaceOrder"/> | ||
<grabTextFrom selector="{{CheckoutSuccessMainSection.orderNumber}}" stepKey="grabOrderNumber"/> | ||
|
||
<!--Check subtotal in created order--> | ||
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> | ||
<actionGroup ref="filterOrderGridById" stepKey="filterOrderById"> | ||
<argument name="orderId" value="$grabOrderNumber"/> | ||
</actionGroup> | ||
<click selector="{{AdminOrdersGridSection.firstRow}}" stepKey="clickOrderRow"/> | ||
<waitForPageLoad stepKey="waitForAdminOrderPageLoad"/> | ||
<scrollTo selector="{{AdminOrderTotalSection.subTotal}}" stepKey="scrollToOrderTotalSection"/> | ||
<see selector="{{AdminOrderTotalSection.subTotal}}" userInput="$0.00" stepKey="checkSubtotal"/> | ||
</test> | ||
</tests> |
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
Oops, something went wrong.