|
43 | 43 | <actionGroup ref="logout" stepKey="logout"/>
|
44 | 44 | </after>
|
45 | 45 |
|
46 |
| - <!-- Go to Stores > Product --> |
| 46 | + <!-- Go to Stores > Product, click "Add New Attribute" --> |
47 | 47 | <actionGroup ref="AdminOpenProductAttributePageActionGroup" stepKey="openProductAttributePage"/>
|
48 |
| - |
49 |
| - <!-- Create new product attribute --> |
50 | 48 | <click selector="{{AdminProductAttributeGridSection.createNewAttributeBtn}}" stepKey="createNewAttribute"/>
|
| 49 | + |
| 50 | + <!-- Input value for Default Label. Verify dropdown of "Catalog Input Type for Store Owner" --> |
51 | 51 | <actionGroup ref="AdminFillProductAttributePropertiesActionGroup" stepKey="fillAttributeProperties">
|
52 | 52 | <argument name="attributeName" value="{{productTextEditorAttribute.attribute_code}}"/>
|
53 | 53 | <argument name="attributeType" value="{{productTextEditorAttribute.frontend_input}}"/>
|
54 | 54 | </actionGroup>
|
55 | 55 |
|
56 |
| - <!-- Update product attribute input type and assert WYSIWYG --> |
| 56 | + <!-- Input value for "Catalog Input Type for Store Owner" --> |
57 | 57 | <selectOption selector="{{AttributePropertiesSection.InputType}}" userInput="{{productAttributeWysiwyg.frontend_input}}" stepKey="updateInputType"/>
|
| 58 | + |
| 59 | + <!-- Click on "Storefront Properties" tab on left menu --> |
58 | 60 | <click selector="{{StorefrontPropertiesSection.StoreFrontPropertiesTab}}" stepKey="clickStorefrontPropertiesTab"/>
|
59 | 61 | <dontSeeElement selector="{{StorefrontPropertiesSection.EnableWYSIWYG}}" stepKey="dontSeeWYSIWYGEnableField"/>
|
60 | 62 |
|
61 |
| - <!-- Change attribute visibility and input type --> |
| 63 | + <!-- Selection for "Visible on Catalog Pages on Storefront" --> |
62 | 64 | <selectOption selector="{{StorefrontPropertiesSection.visibleOnCatalogPagesOnStorefront}}" userInput="Yes" stepKey="enableVisibleOnStorefront"/>
|
63 | 65 | <scrollToTopOfPage stepKey="scrollToPageTop"/>
|
| 66 | + |
| 67 | + <!-- Go back to "Properties" tab on left menu --> |
64 | 68 | <click selector="{{AttributePropertiesSection.propertiesTab}}" stepKey="clickPropertiesTab"/>
|
| 69 | + |
| 70 | + <!-- Updated value for "Catalog Input Type for Store Owner" --> |
65 | 71 | <selectOption selector="{{AttributePropertiesSection.InputType}}" userInput="{{productTextEditorAttribute.frontend_input}}" stepKey="returnInputType"/>
|
| 72 | + |
| 73 | + <!-- Save Product Attribute --> |
66 | 74 | <actionGroup ref="saveProductAttribute" stepKey="saveAttribute"/>
|
67 | 75 |
|
68 | 76 | <!-- Go to Store > Attribute Set -->
|
69 | 77 | <actionGroup ref="AdminOpenAttributeSetGridPageActionGroup" stepKey="openAttributeSetPage"/>
|
70 | 78 |
|
71 |
| - <!-- Open Default attribute --> |
| 79 | + <!-- From grid, click on attribute set Default --> |
72 | 80 | <actionGroup ref="AdminOpenAttributeSetByNameActionGroup" stepKey="openDefaultAttributeSet"/>
|
73 | 81 |
|
74 |
| - <!-- Add created attribute to Default attribute and save --> |
| 82 | + <!-- Add Product Attribute to Default attribute by dragging and dropping this to the 'Project Details' folder. Then Save. --> |
75 | 83 | <actionGroup ref="AssignAttributeToGroup" stepKey="assignAttributeToGroup">
|
76 | 84 | <argument name="group" value="Product Details"/>
|
77 | 85 | <argument name="attribute" value="{{productTextEditorAttribute.attribute_code}}"/>
|
|
84 | 92 | <argument name="product" value="_defaultProduct"/>
|
85 | 93 | </actionGroup>
|
86 | 94 |
|
87 |
| - <!-- Select attribute set: Default --> |
| 95 | + <!-- On product page, select Attribute Set: "Default" --> |
88 | 96 | <actionGroup ref="AdminProductPageSelectAttributeSet" stepKey="selectAttributeSet">
|
89 | 97 | <argument name="attributeSetName" value="Default"/>
|
90 | 98 | </actionGroup>
|
|
106 | 114 | <!-- Add content into attribute -->
|
107 | 115 | <fillField selector="{{ProductDescriptionWysiwygSection.attributeEditArea(productTextEditorAttribute.attribute_code)}}" userInput="This content from product page" stepKey="setContent"/>
|
108 | 116 |
|
109 |
| - <!-- Fill and save product form --> |
| 117 | + <!-- Fill up all required fields for product form --> |
110 | 118 | <actionGroup ref="fillMainProductForm" stepKey="fillProductForm"/>
|
111 | 119 | <actionGroup ref="saveProductForm" stepKey="saveProductForm"/>
|
112 | 120 |
|
|
0 commit comments