|
| 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="StoreFrontAssertProductFinalPriceChangesDynamicallyOnProductPageWithTierPricesConfiguredTest"> |
| 11 | + <annotations> |
| 12 | + <features value="Catalog"/> |
| 13 | + <stories value="Tier price"/> |
| 14 | + <title value="Product price is updated according to tier prices when changing product quantity"/> |
| 15 | + <description value="Check that price of product will be updated according to tier prices on product page when changing product quantity"/> |
| 16 | + <severity value="MAJOR"/> |
| 17 | + <testCaseId value="MC-42006"/> |
| 18 | + <useCaseId value="MC-41767"/> |
| 19 | + <group value="catalog"/> |
| 20 | + </annotations> |
| 21 | + <before> |
| 22 | + <createData entity="SimpleProduct2" stepKey="createSimpleProduct"/> |
| 23 | + <createData entity="CustomerEntityOne" stepKey="createCustomer"/> |
| 24 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginToAdmin"/> |
| 25 | + </before> |
| 26 | + <after> |
| 27 | + <deleteData createDataKey="createSimpleProduct" stepKey="deleteSimpleProduct"/> |
| 28 | + <actionGroup ref="StorefrontCustomerLogoutActionGroup" stepKey="customerLogout"/> |
| 29 | + <deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/> |
| 30 | + <actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="amOnProductGridPage"/> |
| 31 | + <actionGroup ref="ClearFiltersAdminDataGridActionGroup" stepKey="clearFilterProduct"/> |
| 32 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="logoutFromAdmin"/> |
| 33 | + </after> |
| 34 | + <!--AdminProductPageOpenByIdActionGroup--> |
| 35 | + <actionGroup ref="AdminProductPageOpenByIdActionGroup" stepKey="openProductForEdit"> |
| 36 | + <argument name="productId" value="$createSimpleProduct.id$"/> |
| 37 | + </actionGroup> |
| 38 | + <actionGroup ref="AdminAddAdvancedPricingToTheProductActionGroup" stepKey="addCustomerGroupPrice"> |
| 39 | + <argument name="index" value="0"/> |
| 40 | + <argument name="groupPrice" value="simpleGroupPrice"/> |
| 41 | + </actionGroup> |
| 42 | + <actionGroup ref="AdminAddAdvancedPricingToTheProductActionGroup" stepKey="addCustomerGroupPrice2"> |
| 43 | + <argument name="index" value="1"/> |
| 44 | + <argument name="groupPrice" value="tierPriceForAllGroups"/> |
| 45 | + </actionGroup> |
| 46 | + <actionGroup ref="AdminAddAdvancedPricingToTheProductActionGroup" stepKey="addCustomerGroupPrice3"> |
| 47 | + <argument name="index" value="2"/> |
| 48 | + <argument name="groupPrice" value="tierPriceForGeneralGroup"/> |
| 49 | + </actionGroup> |
| 50 | + <actionGroup ref="SaveProductFormActionGroup" stepKey="saveSimpleProduct"/> |
| 51 | + <actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="openProductPage"> |
| 52 | + <argument name="productUrl" value="$createSimpleProduct.custom_attributes[url_key]$"/> |
| 53 | + </actionGroup> |
| 54 | + <fillField selector="{{StorefrontProductActionSection.quantity}}" userInput="2" stepKey="fillQuantity"/> |
| 55 | + <actionGroup ref="StorefrontAssertProductPriceOnProductPageActionGroup" stepKey="seeSimpleProductPriceOnStoreFrontPage"> |
| 56 | + <argument name="productPrice" value="80"/> |
| 57 | + </actionGroup> |
| 58 | + <fillField selector="{{StorefrontProductActionSection.quantity}}" userInput="3" stepKey="fillQuantity2"/> |
| 59 | + <actionGroup ref="StorefrontAssertProductPriceOnProductPageActionGroup" stepKey="seeSimpleProductPriceOnStoreFrontPage2"> |
| 60 | + <argument name="productPrice" value="80"/> |
| 61 | + </actionGroup> |
| 62 | + <actionGroup ref="LoginToStorefrontActionGroup" stepKey="loginAsCustomer"> |
| 63 | + <argument name="Customer" value="$createCustomer$" /> |
| 64 | + </actionGroup> |
| 65 | + <actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="openSimpleProductPage"> |
| 66 | + <argument name="productUrl" value="$createSimpleProduct.custom_attributes[url_key]$"/> |
| 67 | + </actionGroup> |
| 68 | + <fillField selector="{{StorefrontProductActionSection.quantity}}" userInput="2" stepKey="fillQuantity3"/> |
| 69 | + <actionGroup ref="StorefrontAssertProductPriceOnProductPageActionGroup" stepKey="seeSimpleProductPriceOnStoreFrontPage3"> |
| 70 | + <argument name="productPrice" value="80"/> |
| 71 | + </actionGroup> |
| 72 | + <fillField selector="{{StorefrontProductActionSection.quantity}}" userInput="3" stepKey="fillQuantity4"/> |
| 73 | + <actionGroup ref="StorefrontAssertProductPriceOnProductPageActionGroup" stepKey="seeSimpleProductPriceOnStoreFrontPage4"> |
| 74 | + <argument name="productPrice" value="70"/> |
| 75 | + </actionGroup> |
| 76 | + </test> |
| 77 | +</tests> |
0 commit comments