|
| 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="AdminCreateGroupedProductNonDefaultAttributeSetTest"> |
| 11 | + <annotations> |
| 12 | + <features value="GroupedProduct"/> |
| 13 | + <stories value="Create product"/> |
| 14 | + <title value="Create Grouped Product when non-default attribute set is chosen"/> |
| 15 | + <description value="Create Grouped Product with simple when non-default attribute set is chosen"/> |
| 16 | + <group value="groupedProduct"/> |
| 17 | + </annotations> |
| 18 | + <before> |
| 19 | + <createData entity="ApiProductWithDescription" stepKey="createSimpleProduct"/> |
| 20 | + <createData entity="CatalogAttributeSet" stepKey="createAttributeSet"/> |
| 21 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
| 22 | + </before> |
| 23 | + <after> |
| 24 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> |
| 25 | + <deleteData createDataKey="createSimpleProduct" stepKey="deleteFirstProduct"/> |
| 26 | + <deleteData createDataKey="createAttributeSet" stepKey="deleteAttributeSet"/> |
| 27 | + </after> |
| 28 | + |
| 29 | + <actionGroup ref="GoToSpecifiedCreateProductPageActionGroup" stepKey="createGroupedProduct"> |
| 30 | + <argument name="productType" value="grouped"/> |
| 31 | + </actionGroup> |
| 32 | + <actionGroup ref="AdminProductPageSelectAttributeSetActionGroup" stepKey="selectAttributeSet"> |
| 33 | + <argument name="attributeSetName" value="$createAttributeSet.attribute_set_name$"/> |
| 34 | + </actionGroup> |
| 35 | + <actionGroup ref="FillGroupedProductFormActionGroup" stepKey="fillProductForm"> |
| 36 | + <argument name="product" value="GroupedProduct"/> |
| 37 | + </actionGroup> |
| 38 | + <actionGroup ref="AdminAssignProductToGroupActionGroup" stepKey="addSimpleToGroup"> |
| 39 | + <argument name="product" value="$$createSimpleProduct$$"/> |
| 40 | + </actionGroup> |
| 41 | + <actionGroup ref="AdminAssertProductOnGroupedOptionGridActionGroup" stepKey="assertProductOptionGrid"> |
| 42 | + <argument name="product" value="$$createSimpleProduct$$"/> |
| 43 | + </actionGroup> |
| 44 | + </test> |
| 45 | +</tests> |
0 commit comments