|
| 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 | +<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 9 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 10 | + <test name="BundleProductWithTierPriceInCartTest"> |
| 11 | + <annotations> |
| 12 | + <features value="Bundle"/> |
| 13 | + <stories value="Check that price of cart is correct when the bundle product added to the cart twice"/> |
| 14 | + <title value="Customer should get the right subtotal in cart when the bundle product added to the cart twice"/> |
| 15 | + <description value="Customer should be able to add one more bundle product to the cart and get the right price"/> |
| 16 | + <severity value="CRITICAL"/> |
| 17 | + <testCaseId value="MC-19727"/> |
| 18 | + <group value="bundle"/> |
| 19 | + </annotations> |
| 20 | + <before> |
| 21 | + <createData entity="SimpleProduct2" stepKey="simpleProduct1"/> |
| 22 | + <createData entity="SimpleProduct2" stepKey="simpleProduct2"/> |
| 23 | + <actionGroup ref="LoginAsAdmin" stepKey="login"/> |
| 24 | + </before> |
| 25 | + <after> |
| 26 | + <deleteData createDataKey="simpleProduct1" stepKey="deleteSimpleProduct1"/> |
| 27 | + <deleteData createDataKey="simpleProduct2" stepKey="deleteSimpleProduct2"/> |
| 28 | + <actionGroup ref="StorefrontSignOutActionGroup" stepKey="StorefrontSignOutActionGroup"/> |
| 29 | + <actionGroup stepKey="deleteBundle" ref="deleteProductUsingProductGrid"> |
| 30 | + <argument name="product" value="BundleProduct"/> |
| 31 | + </actionGroup> |
| 32 | + <actionGroup ref="AdminClearFiltersActionGroup" stepKey="clearFiltersAfter"/> |
| 33 | + <actionGroup ref="AdminDeleteCustomerActionGroup" stepKey="deleteCustomer"> |
| 34 | + <argument name="customerEmail" value="CustomerEntityOne.email"/> |
| 35 | + </actionGroup> |
| 36 | + <amOnPage url="{{AdminLogoutPage.url}}" stepKey="logout"/> |
| 37 | + </after> |
| 38 | + <amOnPage url="{{AdminProductCreatePage.url(BundleProduct.set, BundleProduct.type)}}" stepKey="goToBundleProductCreationPage"/> |
| 39 | + <waitForPageLoad stepKey="waitForBundleProductCreatePageToLoad"/> |
| 40 | + <actionGroup ref="fillMainBundleProductForm" stepKey="fillMainFieldsForBundle"/> |
| 41 | + <actionGroup ref="addBundleOptionWithOneProduct" stepKey="addBundleOption1"> |
| 42 | + <argument name="x" value="0"/> |
| 43 | + <argument name="n" value="1"/> |
| 44 | + <argument name="prodOneSku" value="$$simpleProduct1.sku$$"/> |
| 45 | + <argument name="prodTwoSku" value=""/> |
| 46 | + <argument name="optionTitle" value="Option1"/> |
| 47 | + <argument name="inputType" value="checkbox"/> |
| 48 | + </actionGroup> |
| 49 | + <actionGroup ref="addBundleOptionWithOneProduct" stepKey="addBundleOption2"> |
| 50 | + <argument name="x" value="1"/> |
| 51 | + <argument name="n" value="2"/> |
| 52 | + <argument name="prodOneSku" value="$$simpleProduct2.sku$$"/> |
| 53 | + <argument name="prodTwoSku" value=""/> |
| 54 | + <argument name="optionTitle" value="Option2"/> |
| 55 | + <argument name="inputType" value="checkbox"/> |
| 56 | + </actionGroup> |
| 57 | + <scrollToTopOfPage stepKey="scrollTopPageProduct"/> |
| 58 | + <actionGroup ref="ProductSetAdvancedPricing" stepKey="addTierPriceProduct"> |
| 59 | + <argument name="group" value="ALL GROUPS"/> |
| 60 | + <argument name="quantity" value="1"/> |
| 61 | + <argument name="price" value="Discount"/> |
| 62 | + <argument name="amount" value="50"/> |
| 63 | + </actionGroup> |
| 64 | + <actionGroup ref="SignUpNewUserFromStorefrontActionGroup" stepKey="signUpNewUser"> |
| 65 | + <argument name="Customer" value="CustomerEntityOne"/> |
| 66 | + </actionGroup> |
| 67 | + <amOnPage url="{{StorefrontProductPage.url(BundleProduct.urlKey)}}" stepKey="goToStorefront"/> |
| 68 | + <waitForPageLoad stepKey="waitForStorefront"/> |
| 69 | + <actionGroup ref="StorefrontSelectCustomizeAndAddToTheCartButtonActionGroup" stepKey="clickOnCustomizeAndAddToCartButton"/> |
| 70 | + <actionGroup ref="StorefrontEnterProductQuantityAndAddToTheCartActionGroup" stepKey="enterProductQuantityAndAddToTheCart"> |
| 71 | + <argument name="quantity" value="1"/> |
| 72 | + </actionGroup> |
| 73 | + <actionGroup ref="StorefrontEnterProductQuantityAndAddToTheCartActionGroup" stepKey="enterProductQuantityAndAddToTheCartAgain"> |
| 74 | + <argument name="quantity" value="1"/> |
| 75 | + </actionGroup> |
| 76 | + <actionGroup ref="AssertSubTotalOnStorefrontMiniCartActionGroup" stepKey="assertSubTotalOnStorefrontMiniCart"> |
| 77 | + <argument name="subTotal" value="$246.00"/> |
| 78 | + </actionGroup> |
| 79 | + </test> |
| 80 | +</tests> |
0 commit comments