|
92 | 92 | <deleteData createDataKey="productAttributeHandle" stepKey="deleteProductAttribute"/>
|
93 | 93 | </after>
|
94 | 94 |
|
95 |
| - <comment userInput="Filter and edit simple product 1" stepKey="Edit1"/> |
| 95 | + <comment userInput="Filter and edit simple product 1" stepKey="filterAndEditComment1"/> |
96 | 96 | <amOnPage url="{{AdminProductIndexPage}}" stepKey="productIndexPage"/>
|
97 | 97 | <waitForPageLoad time="30" stepKey="waitForPageLoad1"/>
|
98 | 98 | <actionGroup ref="resetProductGridToDefaultView" stepKey="resetProductGridColumnsInitial"/>
|
99 | 99 | <actionGroup ref="filterProductGridBySku" stepKey="filterProductGridSimple">
|
100 | 100 | <argument name="product" value="$$simple1Handle$$"/>
|
101 | 101 | </actionGroup>
|
102 | 102 | <click selector="{{AdminProductGridSection.productGridXRowYColumnButton('1', '2')}}" stepKey="openProductForEdit"/>
|
103 |
| - <waitForPageLoad time="30" stepKey="waitForPageLoad2"/> |
104 | 103 | <conditionalClick selector="{{AdminProductFormSection.productFormTab('Related Products')}}" dependentSelector="{{AdminProductFormSection.productFormTabState('Related Products', 'closed')}}" visible="true" stepKey="openRelatedProductTab"/>
|
105 | 104 | <waitForPageLoad time="30" stepKey="waitForPageLoad3"/>
|
106 | 105 |
|
107 | 106 | <!-- TODO: move adding related product to a action group when nested action group is allowed (ref#: MQE-539)-->
|
108 |
| - <comment userInput="Add related simple product to simple product" stepKey="Add1"/> |
| 107 | + <comment userInput="Add related simple product to simple product" stepKey="addSimpleToSimpleComment"/> |
109 | 108 | <click selector="{{AdminProductFormRelatedUpSellCrossSellSection.AddRelatedProductsButton}}" stepKey="clickAddRelatedProductButton"/>
|
110 |
| - <waitForPageLoad time="30" stepKey="waitForPageLoad4"/> |
111 | 109 | <actionGroup ref="filterProductGridBySku" stepKey="filterProductGridSimple1">
|
112 | 110 | <argument name="product" value="$$simple2Handle$$"/>
|
113 | 111 | </actionGroup>
|
114 | 112 | <click selector="{{AdminProductModalSlideGridSection.productGridXRowYColumnButton('1', '1')}}" stepKey="selectSimpleTwo"/>
|
115 | 113 | <click selector="{{AdminProductGridFilterSection.clearFilters}}" stepKey="selectClearAll1"/>
|
116 | 114 | <click selector="{{AdminAddRelatedProductsModalSection.AddSelectedProductsButton}}" stepKey="addRelatedProductSelected1"/>
|
117 | 115 |
|
118 |
| - <comment userInput="Add related config product to simple product" stepKey="Add2"/> |
| 116 | + <comment userInput="Add related config product to simple product" stepKey="addConfigToSimpleComment"/> |
119 | 117 | <click selector="{{AdminProductFormRelatedUpSellCrossSellSection.AddRelatedProductsButton}}" stepKey="clickAddRelatedProductButton2"/>
|
120 |
| - <waitForPageLoad time="30" stepKey="waitForPageLoad7"/> |
121 | 118 | <actionGroup ref="filterProductGridBySku" stepKey="filterProductGridSimpleForRelatedConfig1">
|
122 | 119 | <argument name="product" value="$$baseConfigProductHandle$$"/>
|
123 | 120 | </actionGroup>
|
124 | 121 | <click selector="{{AdminProductModalSlideGridSection.productGridXRowYColumnButton('1', '1')}}" stepKey="selectConfigProduct"/>
|
125 | 122 | <click selector="{{AdminProductGridFilterSection.clearFilters}}" stepKey="selectClearAll2"/>
|
126 | 123 | <click selector="{{AdminAddRelatedProductsModalSection.AddSelectedProductsButton}}" stepKey="addRelatedProductSelected2"/>
|
127 | 124 |
|
128 |
| - <comment userInput="Save simple product" stepKey="Save1"/> |
| 125 | + <comment userInput="Save simple product" stepKey="saveSimpleProductComment"/> |
129 | 126 | <actionGroup ref="saveProductForm" stepKey="saveRelatedProduct1"/>
|
130 |
| - <waitForPageLoad time="30" stepKey="waitForPageLoad10"/> |
131 | 127 |
|
132 | 128 | <comment userInput="Assert related simple products for simple product in Admin Product Form" stepKey="assertRelated1Comment"/>
|
133 | 129 | <actionGroup ref="AssertTextInAdminProductRelatedUpSellCrossSellSection" stepKey="assertRelated1">
|
134 |
| - <argument name="element" value="AdminProductRelatedUpSellCrossSellSection.relatedProductSectionText"/> |
| 130 | + <argument name="element" value="AdminProductFormRelatedUpSellCrossSellSection.relatedProductSectionText"/> |
135 | 131 | <argument name="expectedText" value="$$simple2Handle.name$$"/>
|
136 | 132 | </actionGroup>
|
137 | 133 |
|
138 | 134 | <comment userInput="Assert related config products for simple product in Admin Product Form" stepKey="assertRelated2Comment"/>
|
139 | 135 | <actionGroup ref="AssertTextInAdminProductRelatedUpSellCrossSellSection" stepKey="assertRelated2">
|
140 |
| - <argument name="element" value="AdminProductRelatedUpSellCrossSellSection.relatedProductSectionText"/> |
| 136 | + <argument name="element" value="AdminProductFormRelatedUpSellCrossSellSection.relatedProductSectionText"/> |
141 | 137 | <argument name="expectedText" value="$$baseConfigProductHandle.name$$"/>
|
142 | 138 | </actionGroup>
|
143 | 139 |
|
144 |
| - <comment userInput="Filter and edit config product" stepKey="Edit2"/> |
| 140 | + <comment userInput="Filter and edit config product" stepKey="filterAndEditComment2"/> |
145 | 141 | <amOnPage url="{{AdminProductIndexPage}}" stepKey="productIndexPage2"/>
|
146 |
| - <waitForPageLoad time="30" stepKey="waitForPageLoad11"/> |
| 142 | + <waitForPageLoad time="30" stepKey="waitForPageLoad5"/> |
147 | 143 | <actionGroup ref="resetProductGridToDefaultView" stepKey="resetProductGridColumnsInitial2"/>
|
148 | 144 | <actionGroup ref="filterProductGridBySku" stepKey="filterProductGridConfig">
|
149 | 145 | <argument name="product" value="$$baseConfigProductHandle$$"/>
|
150 | 146 | </actionGroup>
|
151 | 147 | <click selector="{{AdminProductGridSection.productGridXRowYColumnButton('1', '2')}}" stepKey="openProductForEdit2"/>
|
152 |
| - <waitForPageLoad time="30" stepKey="waitForPageLoad12"/> |
153 | 148 | <conditionalClick selector="{{AdminProductFormSection.productFormTab('Related Products')}}" dependentSelector="{{AdminProductFormSection.productFormTabState('Related Products', 'closed')}}" visible="true" stepKey="openRelatedProductTab2"/>
|
154 |
| - <waitForPageLoad time="30" stepKey="waitForPageLoad131"/> |
| 149 | + <waitForPageLoad time="30" stepKey="waitForPageLoad7"/> |
155 | 150 |
|
156 |
| - <comment userInput="Add related simple product to config product" stepKey="Add3"/> |
| 151 | + <comment userInput="Add related simple product to config product" stepKey="addSimpleToConfigComment"/> |
157 | 152 | <click selector="{{AdminProductFormRelatedUpSellCrossSellSection.AddRelatedProductsButton}}" stepKey="clickAddRelatedProductButton3"/>
|
158 |
| - <waitForPageLoad time="30" stepKey="waitForPageLoad14"/> |
159 | 153 | <actionGroup ref="filterProductGridBySku" stepKey="filterProductGridForConfig3">
|
160 | 154 | <argument name="product" value="$$simple2Handle$$"/>
|
161 | 155 | </actionGroup>
|
162 | 156 | <click selector="{{AdminProductModalSlideGridSection.productGridXRowYColumnButton('1', '1')}}" stepKey="selectSimpleTwo2"/>
|
163 | 157 | <click selector="{{AdminProductGridFilterSection.clearFilters}}" stepKey="selectClearAll3"/>
|
164 | 158 | <click selector="{{AdminAddRelatedProductsModalSection.AddSelectedProductsButton}}" stepKey="addRelatedProductSelected3"/>
|
165 | 159 |
|
166 |
| - <comment userInput="Save config product" stepKey="Save2"/> |
| 160 | + <comment userInput="Save config product" stepKey="saveConfigProductComment"/> |
167 | 161 | <actionGroup ref="saveProductForm" stepKey="saveRelatedProduct2"/>
|
168 |
| - <waitForPageLoad time="30" stepKey="waitForPageLoad17"/> |
169 | 162 |
|
170 | 163 | <comment userInput="Assert related simple product for config product in Admin Product Form" stepKey="assertRelated3Comment"/>
|
171 | 164 | <actionGroup ref="AssertTextInAdminProductRelatedUpSellCrossSellSection" stepKey="assertRelated3">
|
172 |
| - <argument name="element" value="AdminProductRelatedUpSellCrossSellSection.relatedProductSectionText"/> |
| 165 | + <argument name="element" value="AdminProductFormRelatedUpSellCrossSellSection.relatedProductSectionText"/> |
173 | 166 | <argument name="expectedText" value="$$simple2Handle.name$$"/>
|
174 | 167 | </actionGroup>
|
175 | 168 |
|
176 | 169 | <comment userInput="Check storefront related products on simple product page" stepKey="navigateToSimpleProduct1PageComment"/>
|
177 | 170 | <amOnPage url="$$simple1Handle.custom_attributes[url_key]$$.html" stepKey="navigateToSimpleProduct1Page"/>
|
178 |
| - <waitForPageLoad stepKey="waitForPageLoad18"/> |
| 171 | + <waitForPageLoad stepKey="waitForPageLoad9"/> |
179 | 172 | <see selector="{{StorefrontProductRelatedProductsSection.relatedProductsActionsHeaderText}}" userInput="Check items to add to the cart" stepKey="assertRelatedProductHeaderInStorefront1"/>
|
180 | 173 | <see selector="{{StorefrontProductRelatedProductsSection.relatedProductsActionsHeaderText}}" userInput="select all" stepKey="assertRelatedProductHeaderInStorefront2"/>
|
181 | 174 | <see selector="{{StorefrontProductRelatedProductsSection.relatedProductsListSectionText}}" userInput="$$simple2Handle.name$$" stepKey="assertRelatedSimpleProductNameInStorefront"/>
|
182 | 175 | <see selector="{{StorefrontProductRelatedProductsSection.relatedProductsListSectionText}}" userInput="$$baseConfigProductHandle.name$$" stepKey="assertRelatedConfigProductNameInStorefront"/>
|
183 | 176 |
|
184 | 177 | <comment userInput="Navigate to product page from related product link" stepKey="navigateToConfigProductFromRelatedSectionComment"/>
|
185 | 178 | <click selector="{{StorefrontProductRelatedProductsSection.relatedProductName('$$baseConfigProductHandle.custom_attributes[url_key]$$')}}" stepKey="clickRelatedProductByName"/>
|
186 |
| - <waitForPageLoad stepKey="waitForPageLoad19"/> |
| 179 | + <waitForPageLoad stepKey="waitForPageLoad11"/> |
187 | 180 | <seeInCurrentUrl url="$$baseConfigProductHandle.custom_attributes[url_key]$$" stepKey="seeInCurrentUrl"/>
|
188 | 181 |
|
189 | 182 | <comment userInput="Select option for configurable product" stepKey="selectOptionConfigProduct"/>
|
|
0 commit comments