|
| 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 | + |
| 9 | +<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 10 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 11 | + <test name="AdminAllowMultipleBoxesForShippingAttributeTest"> |
| 12 | + <annotations> |
| 13 | + <features value="CatalogInventory"/> |
| 14 | + <stories value="Allow Multiple Boxes for Shipping attribute is not saving value - Product Edit"/> |
| 15 | + <title value="Verify Allow Multiple Boxes for Shipping attribute is dependent on Qty Uses Decimals"/> |
| 16 | + <description value="Verify Allow Multiple Boxes for Shipping attribute is dependent on Qty Uses Decimals"/> |
| 17 | + <severity value="AVERAGE"/> |
| 18 | + <useCaseId value="ACP2E-992"/> |
| 19 | + <testCaseId value="AC-6230"/> |
| 20 | + <group value="catalog"/> |
| 21 | + <group value="catalogInventory"/> |
| 22 | + </annotations> |
| 23 | + <before> |
| 24 | + <createData entity="_defaultCategory" stepKey="createPreReqCategory"/> |
| 25 | + <createData entity="SimpleProduct" stepKey="createPreReqSimpleProduct"> |
| 26 | + <requiredEntity createDataKey="createPreReqCategory"/> |
| 27 | + </createData> |
| 28 | + </before> |
| 29 | + <after> |
| 30 | + <deleteData createDataKey="createPreReqCategory" stepKey="deletePreReqCategory"/> |
| 31 | + <deleteData createDataKey="createPreReqSimpleProduct" stepKey="deletePreReqSimpleProduct"/> |
| 32 | + </after> |
| 33 | + <!--Step1. Login as admin. Go to Catalog > Products page. Filtering *prod1*. Open *prod1* to edit--> |
| 34 | + <actionGroup ref="AdminLoginActionGroup" stepKey="LoginAsAdmin" /> |
| 35 | + <actionGroup ref="SearchForProductOnBackendActionGroup" stepKey="filterGroupedProductOptions"> |
| 36 | + <argument name="product" value="SimpleProduct"/> |
| 37 | + </actionGroup> |
| 38 | + <click selector="{{AdminProductGridSection.productGridNameProduct('$$createPreReqSimpleProduct.name$$')}}" |
| 39 | + stepKey="clickOpenProductForEdit"/> |
| 40 | + <waitForPageLoad time="30" stepKey="waitForProductEditOpen"/> |
| 41 | + <!--Step2. Open *Advanced Inventory* pop-up (Click on *Advanced Inventory* link). Set *Qty Uses Decimals* to *Yes*. Click on button *Done* --> |
| 42 | + <actionGroup ref="AdminClickOnAdvancedInventoryLinkActionGroup" stepKey="clickOnAdvancedInventoryLink"/> |
| 43 | + <scrollTo selector="{{AdminProductFormAdvancedInventorySection.qtyUsesDecimals}}" stepKey="scrollToQtyUsesDecimalsDropBox"/> |
| 44 | + <dontSeeElement selector="{{AdminProductFormAdvancedInventorySection.allowMultipleBoxesForShipping}}" stepKey="dontSeeAllowMultipleBoxesForShippin"/> |
| 45 | + <click selector="{{AdminProductFormAdvancedInventorySection.qtyUsesDecimalsOptions('1')}}" stepKey="chooseYesOnQtyUsesDecimalsDropBox"/> |
| 46 | + <seeElement selector="{{AdminProductFormAdvancedInventorySection.allowMultipleBoxesForShipping}}" stepKey="seeAllowMultipleBoxesForShippin"/> |
| 47 | + <click selector="{{AdminProductFormAdvancedInventorySection.allowMultipleBoxesForShippingOptions('1')}}" stepKey="chooseYesOnAllowMultipleBoxesForShippingDropBox"/> |
| 48 | + <actionGroup ref="AdminSubmitAdvancedInventoryFormActionGroup" stepKey="clickOnDoneButton"/> |
| 49 | + <!--Step3. Open *Advanced Pricing* pop-up (Click on *Advanced Pricing* link). Click on *Add* button. Fill *0.5* in *Quantity*--> |
| 50 | + <scrollTo selector="{{AdminProductFormSection.productName}}" stepKey="scrollToProductName"/> |
| 51 | + <click selector="{{AdminProductFormSection.advancedPricingLink}}" stepKey="clickOnAdvancedPricingLink1"/> |
| 52 | + <waitForElement selector="{{AdminProductFormAdvancedPricingSection.customerGroupPriceAddButton}}" stepKey="waitForAddButton"/> |
| 53 | + <click selector="{{AdminProductFormAdvancedPricingSection.customerGroupPriceAddButton}}" stepKey="clickOnCustomerGroupPriceAddButton"/> |
| 54 | + <fillField selector="{{AdminProductFormAdvancedPricingSection.productTierPriceQtyInput('0')}}" userInput="0.5" stepKey="fillProductTierPriceQty"/> |
| 55 | + <!--Step4. Close *Advanced Pricing* (Click on button *Done*). Save *prod1* (Click on button *Save*)--> |
| 56 | + <click selector="{{AdminProductFormAdvancedPricingSection.doneButton}}" stepKey="clickOnDoneButton2"/> |
| 57 | + <actionGroup ref="AdminProductFormSaveActionGroup" stepKey="clickOnSaveButton"/> |
| 58 | + </test> |
| 59 | +</tests> |
0 commit comments