|
| 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="AdminChangeProductAttributeSet"> |
| 11 | + <annotations> |
| 12 | + <features value="Checkout"/> |
| 13 | + <stories value="The required product attribute is not displayed when change attribute set"/> |
| 14 | + <title value="Attributes from the selected attribute set should be shown"/> |
| 15 | + <description value="Attributes from the selected attribute set should be shown"/> |
| 16 | + <severity value="CRITICAL"/> |
| 17 | + <testCaseId value="MAGETWO-98452"/> |
| 18 | + <useCaseId value="MAGETWO-98357"/> |
| 19 | + <group value="catalog"/> |
| 20 | + </annotations> |
| 21 | + <before> |
| 22 | + <createData entity="SimpleSubCategory" stepKey="createCategory"/> |
| 23 | + <createData entity="_defaultProduct" stepKey="createSimpleProduct"> |
| 24 | + <requiredEntity createDataKey="createCategory"/> |
| 25 | + </createData> |
| 26 | + |
| 27 | + <createData entity="productAttributeWithTwoOptions" stepKey="createProductAttribute"/> |
| 28 | + <createData entity="productAttributeOption1" stepKey="createProductAttributeOption1"> |
| 29 | + <requiredEntity createDataKey="createProductAttribute"/> |
| 30 | + </createData> |
| 31 | + <createData entity="productAttributeOption2" stepKey="createProductAttributeOption2"> |
| 32 | + <requiredEntity createDataKey="createProductAttribute"/> |
| 33 | + </createData> |
| 34 | + <createData entity="CatalogAttributeSet" stepKey="createAttributeSet"/> |
| 35 | + |
| 36 | + <actionGroup ref="LoginAsAdmin" stepKey="login"/> |
| 37 | + <amOnPage url="{{AdminProductAttributeSetEditPage.url}}/$$createAttributeSet.attribute_set_id$$}}/" stepKey="onAttributeSetEdit"/> |
| 38 | + <actionGroup ref="AssignAttributeToGroup" stepKey="assignAttributeToGroup"> |
| 39 | + <argument name="group" value="Product Details"/> |
| 40 | + <argument name="attribute" value="$$createProductAttribute.attribute_code$$"/> |
| 41 | + </actionGroup> |
| 42 | + <actionGroup ref="SaveAttributeSet" stepKey="SaveAttributeSet"/> |
| 43 | + </before> |
| 44 | + <after> |
| 45 | + <deleteData createDataKey="createSimpleProduct" stepKey="deleteProduct"/> |
| 46 | + <deleteData createDataKey="createCategory" stepKey="deleteCategory"/> |
| 47 | + <deleteData createDataKey="createProductAttribute" stepKey="deleteProductAttribute"/> |
| 48 | + <deleteData createDataKey="createAttributeSet" stepKey="deleteAttributeSet"/> |
| 49 | + <actionGroup ref="ClearProductsFilterActionGroup" stepKey="clearProductsFilter"/> |
| 50 | + </after> |
| 51 | + |
| 52 | + <actionGroup ref="SearchForProductOnBackendActionGroup" stepKey="searchForSimpleProduct"> |
| 53 | + <argument name="product" value="$$createSimpleProduct$$"/> |
| 54 | + </actionGroup> |
| 55 | + |
| 56 | + <actionGroup ref="OpenEditProductOnBackendActionGroup" stepKey="openEditProduct1"> |
| 57 | + <argument name="product" value="$$createSimpleProduct$$"/> |
| 58 | + </actionGroup> |
| 59 | + |
| 60 | + <click selector="{{AdminProductFormSection.attributeSet}}" stepKey="startEditAttrSet"/> |
| 61 | + <fillField selector="{{AdminProductFormSection.attributeSetFilter}}" userInput="$$createAttributeSet.attribute_set_name$$" stepKey="searchForAttrSet"/> |
| 62 | + <click selector="{{AdminProductFormSection.attributeSetFilterResult}}" stepKey="selectAttrSet"/> |
| 63 | + |
| 64 | + <waitForText userInput="$$createProductAttribute.default_frontend_label$$" stepKey="seeAttributeInForm"/> |
| 65 | + </test> |
| 66 | +</tests> |
0 commit comments