|
29 | 29 | <deleteData createDataKey="createVisualSwatchAttribute" stepKey="deleteVisualSwatchAttribute"/>
|
30 | 30 | <actionGroup ref="AdminLogoutActionGroup" stepKey="adminLogout"/>
|
31 | 31 | </after>
|
32 |
| - |
33 | 32 | <!-- Create 2 Configurable products -->
|
34 | 33 | <createData entity="_defaultCategory" stepKey="createCategory" />
|
35 | 34 | <createData entity="ApiConfigurableProduct" stepKey="createConfigurableProduct1">
|
36 | 35 | <requiredEntity createDataKey="createCategory"/>
|
37 | 36 | </createData>
|
38 |
| - |
39 | 37 | <createData entity="ApiConfigurableProduct" stepKey="createConfigurableProduct2">
|
40 | 38 | <requiredEntity createDataKey="createCategory"/>
|
41 | 39 | </createData>
|
42 |
| - |
43 | 40 | <!-- Create product visual swatch attribute -->
|
44 | 41 | <createData entity="VisualSwatchProductAttributeForm" stepKey="createVisualSwatchAttribute"/>
|
45 | 42 | <createData entity="SwatchProductAttributeOption1" stepKey="visualSwatchAttributeOption">
|
46 | 43 | <requiredEntity createDataKey="createVisualSwatchAttribute"/>
|
47 | 44 | </createData>
|
48 |
| - |
49 | 45 | <!-- Create product text swatch attribute -->
|
50 | 46 | <createData entity="TextSwatchProductAttributeForm" stepKey="createTextSwatchAttribute"/>
|
51 | 47 | <createData entity="SwatchProductAttributeOption1" stepKey="textSwatchAttributeOption">
|
52 | 48 | <requiredEntity createDataKey="createTextSwatchAttribute"/>
|
53 | 49 | </createData>
|
54 |
| - |
55 |
| - <magentoCLI stepKey="reindex" command="indexer:reindex"/> |
56 |
| - <magentoCLI stepKey="flushCache" command="cache:flush"/> |
57 |
| - |
| 50 | + <magentoCLI stepKey="reindexPostCreating2Attributes" command="indexer:reindex"/> |
| 51 | + <magentoCLI stepKey="flushCachePostCreating2Attributes" command="cache:flush"/> |
58 | 52 | <!-- Go to the edit page for the visual Swatch attribute -->
|
59 |
| - <actionGroup ref="AdminOpenProductAttributePageActionGroup" stepKey="goToProductAttributesToEditvisualSwatchAttribute"/> |
60 |
| - <fillField selector="{{AdminProductAttributeGridSection.FilterByAttributeCode}}" userInput="$createVisualSwatchAttribute.attribute_code$" stepKey="fillFilterToEditvisualSwatchAttribute"/> |
61 |
| - <click selector="{{AdminProductAttributeGridSection.Search}}" stepKey="clickSearchToEditvisualSwatchAttribute"/> |
| 53 | + <actionGroup ref="AdminOpenProductAttributePageActionGroup" stepKey="goToProductAttributesToEditVisualSwatchAttribute"/> |
| 54 | + <fillField selector="{{AdminProductAttributeGridSection.FilterByAttributeCode}}" userInput="$createVisualSwatchAttribute.attribute_code$" stepKey="fillFilterToEditVisualSwatchAttribute"/> |
| 55 | + <click selector="{{AdminProductAttributeGridSection.Search}}" stepKey="clickSearchToEditVisualSwatchAttribute"/> |
62 | 56 | <click selector="{{AdminProductAttributeGridSection.AttributeCode('$createVisualSwatchAttribute.attribute_code$')}}" stepKey="clickVisualSwatchRowToEdit"/>
|
63 |
| - |
64 | 57 | <click selector="{{AdminManageSwatchSection.swatchWindowEdit('1')}}" stepKey="clickSwatchButtonToEdit"/>
|
65 | 58 | <click selector="{{AdminManageSwatchSection.nthUploadFile('1')}}" stepKey="clickUploadFile1"/>
|
66 | 59 | <attachFile selector="input[name='datafile']" userInput="adobe-thumb.jpg" stepKey="attachFile1"/>
|
67 | 60 | <waitForPageLoad stepKey="waitFileAttached1"/>
|
68 | 61 | <click selector="{{AttributePropertiesSection.SaveAndEdit}}" stepKey="clickSaveAndEditForVisualSwatchAttribute"/>
|
69 | 62 | <waitForElementVisible selector="{{AdminProductMessagesSection.successMessage}}" stepKey="waitForSuccessForVisualSwatchAttribute"/>
|
70 |
| - |
71 | 63 | <!-- Go to the edit page for the text Swatch attribute -->
|
72 | 64 | <actionGroup ref="AdminOpenProductAttributePageActionGroup" stepKey="goToProductAttributesToEditTextSwatchAttribute"/>
|
73 | 65 | <fillField selector="{{AdminProductAttributeGridSection.FilterByAttributeCode}}" userInput="$createTextSwatchAttribute.attribute_code$" stepKey="fillFilterToEditTextSwatchAttribute"/>
|
74 | 66 | <click selector="{{AdminProductAttributeGridSection.Search}}" stepKey="clickSearchToEditTextSwatchAttribute"/>
|
75 | 67 | <click selector="{{AdminProductAttributeGridSection.AttributeCode('$createTextSwatchAttribute.attribute_code$')}}" stepKey="clickTextSwatchRowToEdit"/>
|
76 |
| - |
77 | 68 | <fillField selector="{{AdminManageSwatchSection.updateSwatchText('1')}}" userInput="{{textSwatch1.name}}" stepKey="fillFirstOptionAdminName"/>
|
78 | 69 | <fillField selector="{{AdminManageSwatchSection.updateDescriptionSwatchText('1')}}" userInput="{{textSwatch1.name}}" stepKey="fillFirstOptionDescription"/>
|
79 | 70 | <fillField selector="{{AdminManageSwatchSection.updateSwatchText('2')}}" userInput="{{textSwatch1.name}}" stepKey="fillFirstOptionDefaultStoreViewName"/>
|
80 | 71 | <fillField selector="{{AdminManageSwatchSection.updateDescriptionSwatchText('2')}}" userInput="{{textSwatch1.name}}" stepKey="fillFirstOptionDefaultStoreViewDescription"/>
|
81 | 72 | <grabValueFrom selector="{{AdminManageSwatchSection.updateDescriptionSwatchText('2')}}" stepKey="grabTextValue"/>
|
82 |
| - |
83 | 73 | <click selector="{{AttributePropertiesSection.SaveAndEdit}}" stepKey="clickSaveAndEditForTextSwatchAttribute"/>
|
84 | 74 | <waitForElementVisible selector="{{AdminProductMessagesSection.successMessage}}" stepKey="waitForSuccessForTextSwatchAttribute"/>
|
85 |
| - |
86 | 75 | <!-- Update Config product1 visual swatch attribute -->
|
87 | 76 | <actionGroup ref="SearchForProductOnBackendActionGroup" stepKey="searchForConfigurableProduct1">
|
88 | 77 | <argument name="product" value="$$createConfigurableProduct1$$"/>
|
89 | 78 | </actionGroup>
|
90 | 79 | <actionGroup ref="OpenEditProductOnBackendActionGroup" stepKey="openEditProductForConfigurableProduct1">
|
91 | 80 | <argument name="product" value="$$createConfigurableProduct1$$"/>
|
92 | 81 | </actionGroup>
|
93 |
| - |
94 | 82 | <!-- Edit the configurable product 1 -->
|
95 | 83 | <click selector="{{AdminProductFormConfigurationsSection.createConfigurations}}" stepKey="clickOnTheCreateConfigurationsButtonForConfigProd1"/>
|
96 | 84 | <waitForPageLoad time="30" stepKey="waitForPageLoadForConfigProd1"/>
|
|
107 | 95 | <click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="saveConfigurableProductForConfigProd1"/>
|
108 | 96 | <conditionalClick selector="{{AdminChooseAffectedAttributeSetPopup.confirm}}" dependentSelector="{{AdminChooseAffectedAttributeSetPopup.confirm}}" visible="true" stepKey="confirmDefaultAttributeSetForConfigurableProductForConfigProd1"/>
|
109 | 97 | <seeElement selector="{{AdminProductMessagesSection.successMessage}}" stepKey="checkProductSavedMessageForConfigProd1"/>
|
110 |
| - |
111 | 98 | <!-- Update Config product2 visual swatch attribute -->
|
112 | 99 | <actionGroup ref="SearchForProductOnBackendActionGroup" stepKey="searchForConfigurableProduct2">
|
113 | 100 | <argument name="product" value="$$createConfigurableProduct2$$"/>
|
114 | 101 | </actionGroup>
|
115 | 102 | <actionGroup ref="OpenEditProductOnBackendActionGroup" stepKey="openEditProductForConfigurableProduct2">
|
116 | 103 | <argument name="product" value="$$createConfigurableProduct2$$"/>
|
117 | 104 | </actionGroup>
|
118 |
| - |
119 | 105 | <!-- Edit the configurable product 2 -->
|
120 | 106 | <click selector="{{AdminProductFormConfigurationsSection.createConfigurations}}" stepKey="clickOnTheCreateConfigurationsButtonForConfigProd2"/>
|
121 | 107 | <waitForPageLoad time="30" stepKey="waitForPageLoadForConfigProd2"/>
|
|
132 | 118 | <click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="saveConfigurableProductForConfigProd2"/>
|
133 | 119 | <conditionalClick selector="{{AdminChooseAffectedAttributeSetPopup.confirm}}" dependentSelector="{{AdminChooseAffectedAttributeSetPopup.confirm}}" visible="true" stepKey="confirmDefaultAttributeSetForConfigurableProductForConfigProd2"/>
|
134 | 120 | <seeElement selector="{{AdminProductMessagesSection.successMessage}}" stepKey="checkProductSavedMessageForConfigProd2"/>
|
135 |
| - |
136 | 121 | <!-- Go to the Storefront category page -->
|
137 | 122 | <amOnPage url="$$createCategory.custom_attributes[url_key]$$.html" stepKey="amOnCategoryPage"/>
|
138 | 123 | <waitForPageLoad stepKey="waitForCategoryPage"/>
|
139 |
| - |
140 | 124 | <!-- Verify swatches are present in the layered navigation -->
|
141 | 125 | <see selector="{{StorefrontCategorySidebarSection.layeredFilterBlock}}" userInput="$createVisualSwatchAttribute.frontend_label[0]$" stepKey="seeVisualSwatchAttributeInLayeredNav"/>
|
142 | 126 | <see selector="{{StorefrontCategorySidebarSection.layeredFilterBlock}}" userInput="$createTextSwatchAttribute.frontend_label[0]$" stepKey="seeTextSwatchAttributeInLayeredNav"/>
|
143 |
| - |
144 | 127 | <click selector="{{StorefrontCategorySidebarSection.filterOptionTitle('$createVisualSwatchAttribute.frontend_label[0]$')}}" stepKey="expandVisualSwatchAttribute"/>
|
145 | 128 | <moveMouseOver selector="{{StorefrontCategorySidebarSection.expandedSwatchThumbnails('$createVisualSwatchAttribute.frontend_label[0]$','swatch-option')}}" stepKey="hoverOverSwatchAttribute"/>
|
146 | 129 | <waitForPageLoad stepKey="waitForHoveredImageToLoad"/>
|
|
151 | 134 | <waitForPageLoad stepKey="waitForHoveredTextToLoad"/>
|
152 | 135 | <seeElement selector="{{StorefrontCategorySidebarSection.swatchTextLayeredNavHover('${grabTextValue}')}}" stepKey="seeSwatchTextOnHover"/>
|
153 | 136 | <moveMouseOver selector="{{StorefrontMinicartSection.showCart}}" stepKey="moveAwayFromLayeredNav2"/>
|
154 |
| - |
155 | 137 | <!-- Verify the swatches on displayed product -->
|
156 | 138 | <click selector="{{StorefrontCategorySidebarSection.filterOptionTitle('$createVisualSwatchAttribute.frontend_label[0]$')}}" stepKey="expandVisualSwatchAttributeToClick"/>
|
157 | 139 | <click selector="{{StorefrontCategorySidebarSection.expandedSwatchThumbnails('$createVisualSwatchAttribute.frontend_label[0]$','swatch-option')}}" stepKey="clickOverSwatchAttribute"/>
|
|
0 commit comments