Skip to content

Commit e6d7b13

Browse files
committed
MAGETWO-98357: The required product attribute is not displayed when change attribute set
1 parent bcf7d9c commit e6d7b13

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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+
</after>
50+
51+
<actionGroup ref="SearchForProductOnBackendActionGroup" stepKey="searchForSimpleProduct">
52+
<argument name="product" value="$$createSimpleProduct$$"/>
53+
</actionGroup>
54+
55+
<actionGroup ref="OpenEditProductOnBackendActionGroup" stepKey="openEditProduct1">
56+
<argument name="product" value="$$createSimpleProduct$$"/>
57+
</actionGroup>
58+
59+
<click selector="{{AdminProductFormSection.attributeSet}}" stepKey="startEditAttrSet"/>
60+
<fillField selector="{{AdminProductFormSection.attributeSetFilter}}" userInput="$$createAttributeSet.attribute_set_name$$" stepKey="searchForAttrSet"/>
61+
<click selector="{{AdminProductFormSection.attributeSetFilterResult}}" stepKey="selectAttrSet"/>
62+
63+
<waitForText userInput="$$createProductAttribute.default_frontend_label$$" stepKey="seeAttributeInForm"/>
64+
</test>
65+
</tests>

0 commit comments

Comments
 (0)