|
128 | 128 | </actionGroup>
|
129 | 129 |
|
130 | 130 | <!-- Edit Content to the product -->
|
131 |
| - <scrollTo selector="{{AdminProductContentSection.sectionHeader}}" x="0" y="-100" stepKey="scrollToContentTab"/> |
132 |
| - <click selector="{{AdminProductContentSection.sectionHeader}}" stepKey="openContentTab"/> |
133 |
| - <fillField selector="{{AdminProductContentSection.descriptionTextArea}}" userInput="EDIT ~ {{ApiProductDescription.value}} ~ EDIT" stepKey="editLongDescription"/> |
134 |
| - <fillField selector="{{AdminProductContentSection.shortDescriptionTextArea}}" userInput="EDIT ~ {{ApiProductShortDescription.value}} ~ EDIT" stepKey="editShortDescription"/> |
| 131 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="scrollToContentTab"/> |
| 132 | + <actionGroup ref="AdminOpenContentSectionOnProductPageActionGroup" stepKey="openContentTab"/> |
| 133 | + <actionGroup ref="AdminFillInProductDescriptionActionGroup" stepKey="editLongDescription"> |
| 134 | + <argument name="description" value="EDIT ~ {{ApiProductDescription.value}} ~ EDIT"/> |
| 135 | + </actionGroup> |
| 136 | + <actionGroup ref="AdminFillInProductShortDescriptionActionGroup" stepKey="editShortDescription"> |
| 137 | + <argument name="shortDescription" value="EDIT ~ {{ApiProductShortDescription.value}} ~ EDIT"/> |
| 138 | + </actionGroup> |
| 139 | + |
135 | 140 |
|
136 | 141 | <!-- Edit product Search Engine Optimization settings -->
|
137 | 142 | <actionGroup ref="AdminChangeProductSEOSettingsActionGroup" stepKey="editProductSEOSettings">
|
|
170 | 175 | </actionGroup>
|
171 | 176 |
|
172 | 177 | <!-- Assert three related products at the storefront -->
|
173 |
| - <seeElement selector="{{StorefrontProductRelatedProductsSection.relatedProductName($$createThirdRelatedProduct.name$$)}}" stepKey="seeFirstRelatedProduct"/> |
174 |
| - <seeElement selector="{{StorefrontProductRelatedProductsSection.relatedProductName($$createSecondRelatedProduct.name$$)}}" stepKey="seeSecondRelatedProduct"/> |
175 |
| - <seeElement selector="{{StorefrontProductRelatedProductsSection.relatedProductName($$createThirdRelatedProduct.name$$)}}" stepKey="seeThirdRelatedProduct"/> |
| 178 | + <actionGroup ref="StorefrontAssertRelatedProductOnProductPageActionGroup" stepKey="seeFirstRelatedProduct"> |
| 179 | + <argument name="productName" value="$$createThirdRelatedProduct.name$$"/> |
| 180 | + </actionGroup> |
| 181 | + <actionGroup ref="StorefrontAssertRelatedProductOnProductPageActionGroup" stepKey="seeSecondRelatedProduct"> |
| 182 | + <argument name="productName" value="$$createSecondRelatedProduct.name$$"/> |
| 183 | + </actionGroup> |
| 184 | + <actionGroup ref="StorefrontAssertRelatedProductOnProductPageActionGroup" stepKey="seeThirdRelatedProduct"> |
| 185 | + <argument name="productName" value="$$createThirdRelatedProduct.name$$"/> |
| 186 | + </actionGroup> |
176 | 187 |
|
177 | 188 | <!-- Assert product content -->
|
178 |
| - <see selector="{{StorefrontProductInfoMainSection.productDescription}}" userInput="EDIT ~ {{ApiProductDescription.value}} ~ EDIT" stepKey="seeEditedLongDescriptionStorefront"/> |
179 |
| - <see selector="{{StorefrontProductInfoMainSection.productShortDescription}}" userInput="EDIT ~ {{ApiProductShortDescription.value}} ~ EDIT" stepKey="seeEditedShortDescriptionStorefront"/> |
| 189 | + <actionGroup ref="AssertStorefrontProductDescriptionActionGroup" stepKey="seeEditedLongDescriptionStorefront"> |
| 190 | + <argument name="productDescription" value="EDIT ~ {{ApiProductDescription.value}} ~ EDIT"/> |
| 191 | + </actionGroup> |
| 192 | + <actionGroup ref="AssertStorefrontShortProductDescriptionActionGroup" stepKey="seeEditedShortDescriptionStorefront"> |
| 193 | + <argument name="productShortDescription" value="EDIT ~ {{ApiProductShortDescription.value}} ~ EDIT"/> |
| 194 | + </actionGroup> |
180 | 195 |
|
181 | 196 | <!-- Assert product design settings "right bar is present at product page with 2 columns" -->
|
182 | 197 | <seeElement selector="{{StorefrontProductPageDesignSection.layoutTwoColumnsRight}}" stepKey="seeNewDesignChanges"/>
|
|
0 commit comments