|
| 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" xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 9 | + <test name="StorefrontVerifyMapMessagePopupOnCartViewPageTest"> |
| 10 | + <annotations> |
| 11 | + <stories value="Shopping Cart"/> |
| 12 | + <features value="Checkout"/> |
| 13 | + <title value="Minimum Advertised Price 'What's this?' popup does not displays in cart"/> |
| 14 | + <description value="When Minimum Advertised Price (MAP) is enabled and the product has MAP set in Advanced Pricing, click on 'What's this?' at the product listing in the shopping cart must display the popup with the info message."/> |
| 15 | + <testCaseId value="MC-41596"/> |
| 16 | + <useCaseId value="MC-41494"/> |
| 17 | + <severity value="MAJOR"/> |
| 18 | + <group value="shoppingCart"/> |
| 19 | + <group value="checkout"/> |
| 20 | + </annotations> |
| 21 | + <before> |
| 22 | + <!-- Enable MAP functionality in Magento Instance --> |
| 23 | + <createData entity="MsrpEnableMAP" stepKey="enableMAP"/> |
| 24 | + <!-- Create product and category --> |
| 25 | + <createData entity="_defaultCategory" stepKey="category"/> |
| 26 | + <createData entity="SimpleProduct" stepKey="product"> |
| 27 | + <requiredEntity createDataKey="category"/> |
| 28 | + </createData> |
| 29 | + </before> |
| 30 | + <after> |
| 31 | + <!-- Disable MAP functionality in Magento Instance --> |
| 32 | + <createData entity="MsrpDisableMAP" stepKey="disableMAP"/> |
| 33 | + <!-- Delete product and category --> |
| 34 | + <deleteData createDataKey="product" stepKey="deleteSimpleProduct"/> |
| 35 | + <deleteData createDataKey="category" stepKey="deleteCategory"/> |
| 36 | + </after> |
| 37 | + |
| 38 | + <!-- Add MAP to the newly created product Advanced Pricing --> |
| 39 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
| 40 | + <actionGroup ref="AdminProductPageOpenByIdActionGroup" stepKey="openAdminProductEditPage"> |
| 41 | + <argument name="productId" value="$$product.id$$"/> |
| 42 | + </actionGroup> |
| 43 | + <actionGroup ref="AdminAddMinimumAdvertisedPriceActionGroup" stepKey="setMapToCreatedProduct"> |
| 44 | + <argument name="msrpData" value="MsrpBeforeOrderConfirmation"/> |
| 45 | + </actionGroup> |
| 46 | + <actionGroup ref="SaveProductFormActionGroup" stepKey="saveProductForm"/> |
| 47 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="logoutAdmin"/> |
| 48 | + |
| 49 | + <!--Adding the newly created product to shopping cart.--> |
| 50 | + <actionGroup ref="StorefrontNavigateToCategoryUrlActionGroup" stepKey="goToCategoryPageOnFrontEnd"> |
| 51 | + <argument name="categoryUrl" value="$category.custom_attributes[url_key]$"/> |
| 52 | + </actionGroup> |
| 53 | + <actionGroup ref="StorefrontAddSimpleProductToCartActionGroup" stepKey="addProductToCart"> |
| 54 | + <argument name="product" value="$product$"/> |
| 55 | + </actionGroup> |
| 56 | + |
| 57 | + <!-- Navigate to the cart edit page --> |
| 58 | + <actionGroup ref="clickViewAndEditCartFromMiniCartActionGroup" stepKey="goToCartViewAndEditPage"/> |
| 59 | + |
| 60 | + <!-- Check if MAP message and link are present and functioning --> |
| 61 | + <actionGroup ref="StorefrontCartPageCheckMapMessagePresentAndClickableActionGroup" stepKey="checkFormMapFunctioning"/> |
| 62 | + </test> |
| 63 | +</tests> |
0 commit comments