|
| 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="AdminShouldBeAbleToMassUpdateAttributesForBundleProductsTest"> |
| 12 | + <annotations> |
| 13 | + <features value="Bundle"/> |
| 14 | + <stories value="Admin list bundle products"/> |
| 15 | + <title value="Admin should be able to mass update attributes for bundle products"/> |
| 16 | + <description value="Admin should be able to mass update attributes for bundle products"/> |
| 17 | + <severity value="CRITICAL"/> |
| 18 | + <testCaseId value="MC-219"/> |
| 19 | + <group value="bundle"/> |
| 20 | + <group value="WYSIWYGDisabled"/> |
| 21 | + </annotations> |
| 22 | + <before> |
| 23 | + <!-- Create Simple Product --> |
| 24 | + <createData entity="SimpleProduct2" stepKey="createSimpleProduct"/> |
| 25 | + <!-- Create Fixed Bundle Product --> |
| 26 | + <createData entity="ApiFixedBundleProduct" stepKey="createFixedBundleProduct"/> |
| 27 | + <!-- Create DropDown Bundle Option --> |
| 28 | + <createData entity="DropDownBundleOption" stepKey="createBundleOption"> |
| 29 | + <requiredEntity createDataKey="createFixedBundleProduct"/> |
| 30 | + </createData> |
| 31 | + <!-- Link Simple Product --> |
| 32 | + <createData entity="ApiBundleLink" stepKey="createNewBundleLink"> |
| 33 | + <requiredEntity createDataKey="createFixedBundleProduct"/> |
| 34 | + <requiredEntity createDataKey="createBundleOption"/> |
| 35 | + <requiredEntity createDataKey="createSimpleProduct"/> |
| 36 | + </createData> |
| 37 | + </before> |
| 38 | + <after> |
| 39 | + <!-- Delete Simple Product --> |
| 40 | + <deleteData createDataKey="createSimpleProduct" stepKey="deleteSimpleProduct"/> |
| 41 | + <!-- Delete Fixed Bundle Product --> |
| 42 | + <deleteData createDataKey="createFixedBundleProduct" stepKey="deleteBundleProduct"/> |
| 43 | + <!-- Clear Filter --> |
| 44 | + <actionGroup ref="ClearProductsFilterActionGroup" stepKey="clearProductFilter"/> |
| 45 | + <!--Log Out Admin--> |
| 46 | + <actionGroup ref="logout" stepKey="logoutAsAdmin"/> |
| 47 | + </after> |
| 48 | + <!-- Login as Admin --> |
| 49 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 50 | + <!-- Go to Catalog -> Catalog -> Products and Search created product in precondition and choose it --> |
| 51 | + <actionGroup ref="SearchForProductOnBackendActionGroup" stepKey="searchProduct"> |
| 52 | + <argument name="product" value="$$createFixedBundleProduct$$"/> |
| 53 | + </actionGroup> |
| 54 | + <!-- Choose "Update attributes" and Change any product data --> |
| 55 | + <actionGroup ref="AdminUpdateProductNameAndDescriptionAttributes" stepKey="updateProductAttribute"> |
| 56 | + <argument name="product" value="UpdateAttributeNameAndDescription"/> |
| 57 | + </actionGroup> |
| 58 | + <!--Run cron twice--> |
| 59 | + <magentoCLI command="cron:run" stepKey="cronRun"/> |
| 60 | + <magentoCLI command="cron:run" stepKey="cronRunTwice"/> |
| 61 | + <!-- Search for a product with a new name and Open Product --> |
| 62 | + <actionGroup ref="filterProductGridByName" stepKey="searchWithNewProductName"> |
| 63 | + <argument name="product" value="UpdateAttributeNameAndDescription"/> |
| 64 | + </actionGroup> |
| 65 | + <actionGroup ref="OpenEditProductOnBackendActionGroup" stepKey="openProductPage"> |
| 66 | + <argument name="product" value="$$createFixedBundleProduct$$"/> |
| 67 | + </actionGroup> |
| 68 | + <!-- Assert product name and description --> |
| 69 | + <actionGroup ref="AssertProductNameInProductEditForm" stepKey="assertProductName"> |
| 70 | + <argument name="productName" value="{{UpdateAttributeNameAndDescription.name}}"/> |
| 71 | + </actionGroup> |
| 72 | + <actionGroup ref="AssertProductDescriptionInProductEditForm" stepKey="assertProductDescription"> |
| 73 | + <argument name="productDescription" value="{{UpdateAttributeNameAndDescription.description}}"/> |
| 74 | + </actionGroup> |
| 75 | + </test> |
| 76 | +</tests> |
0 commit comments