|
| 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="AdminChangeArrangementOfAttributesInAnAttributeSetTest"> |
| 12 | + <annotations> |
| 13 | + <features value="Catalog"/> |
| 14 | + <stories value="change order of the attributes"/> |
| 15 | + <title value="Admin should be able to Verify that it's possible to change order of the attributes"/> |
| 16 | + <description value="Admin should be able to Verify that it's possible to change order of the attributes"/> |
| 17 | + <severity value="MAJOR"/> |
| 18 | + <testCaseId value="MC-26810"/> |
| 19 | + <group value="Catalog"/> |
| 20 | + </annotations> |
| 21 | + <before> |
| 22 | + <!-- Create a custom attribute set and custom product attribute --> |
| 23 | + <createData entity="CatalogAttributeSet" stepKey="createAttributeSet"/> |
| 24 | + <createData entity="productAttributeWithTwoOptions" stepKey="createConfigProductAttribute"/> |
| 25 | + |
| 26 | + </before> |
| 27 | + <after> |
| 28 | + <deleteData createDataKey="createAttributeSet" stepKey="deleteAttributeSet"/> |
| 29 | + <deleteData createDataKey="createConfigProductAttribute" stepKey="deleteConfigProductAttribute"/> |
| 30 | + |
| 31 | + </after> |
| 32 | + <!-- Login to Admin --> |
| 33 | + <actionGroup ref="AdminLoginActionGroup" stepKey="LoginAsAdmin"/> |
| 34 | + |
| 35 | + <!-- Reindex invalidated indices after product attribute has been created/deleted --> |
| 36 | + <magentoCron groups="index" stepKey="reindexInvalidatedIndices"/> |
| 37 | + |
| 38 | + <!-- Navigate to Stores > Attributes > Attribute Set --> |
| 39 | + <amOnPage url="{{AdminProductAttributeSetGridPage.url}}" stepKey="goToAttributeSetPage"/> |
| 40 | + <waitForPageLoad stepKey="waitForPageLoad"/> |
| 41 | + |
| 42 | + <!-- Search and open Attribute Set from preconditions --> |
| 43 | + <actionGroup ref="GoToAttributeSetByNameActionGroup" stepKey="searchAttribute"> |
| 44 | + <argument name="name" value="$$createAttributeSet.attribute_set_name$$"/> |
| 45 | + </actionGroup> |
| 46 | + <dragAndDrop selector1="{{AdminProductAttributeSetEditSection.assignedAttribute('weight')}}" selector2="{{AdminProductAttributeSetEditSection.xThLineItemAttributeGroup('Product Details', '6')}}" stepKey="dragAndDrop1"/> |
| 47 | + <wait stepKey="waitPostDragAndDrop" time="10"/> |
| 48 | + <actionGroup ref="SaveAttributeSetActionGroup" stepKey="saveAttribute"/> |
| 49 | + <!-- Navigate to Catalog > Products --> |
| 50 | + <actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="amOnProductPage"/> |
| 51 | + |
| 52 | + <!-- Start to create a new simple product with the custom attribute set from the preconditions --> |
| 53 | + <click selector="{{AdminProductGridActionSection.addProductBtn}}" stepKey="clickAddProduct"/> |
| 54 | + <waitForPageLoad stepKey="waitForNewProductPage"/> |
| 55 | + |
| 56 | + <actionGroup ref="AdminProductPageSelectAttributeSetActionGroup" stepKey="selectAttribute"> |
| 57 | + <argument name="attributeSetName" value="$$createAttributeSet.attribute_set_name$$"/> |
| 58 | + </actionGroup> |
| 59 | + </test> |
| 60 | +</tests> |
| 61 | + |
0 commit comments