|
1146 | 1146 | <stories value="Products"/>
|
1147 | 1147 | <title value="Verify products display swatches within the admin for grid appearance"/>
|
1148 | 1148 | <description value="Verify that a product which has swatches display the swatches within the admin for grid appearance"/>
|
1149 |
| - <severity value="MAJOR"/> |
| 1149 | + <severity value="AVERAGE"/> |
1150 | 1150 | <useCaseId value="PB-76"/>
|
1151 | 1151 | <testCaseId value="MC-22763"/>
|
1152 | 1152 | <group value="pagebuilder"/>
|
|
1168 | 1168 | <actionGroup ref="logout" stepKey="logout"/>
|
1169 | 1169 | </after>
|
1170 | 1170 | <!-- Create a configurable swatch product via the UI -->
|
1171 |
| - <comment userInput="Create a configurable swatch product via the UI" stepKey="commentCreateConfigurableProduct" /> |
1172 | 1171 | <actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="goToProductIndex" />
|
1173 | 1172 | <actionGroup ref="goToCreateProductPage" stepKey="goToCreateProductPage">
|
1174 | 1173 | <argument name="product" value="BaseConfigurableProduct"/>
|
|
1177 | 1176 | <argument name="product" value="BaseConfigurableProduct"/>
|
1178 | 1177 | </actionGroup>
|
1179 | 1178 | <!-- Add swatch attribute to configurable product -->
|
1180 |
| - <comment userInput="Add swatch attribute to configurable product" stepKey="commentAddSwatchesToProduct"/> |
1181 | 1179 | <actionGroup ref="AddVisualSwatchToProductWithStorefrontConfigActionGroup" stepKey="addSwatchToProduct"/>
|
1182 | 1180 | <actionGroup ref="saveProductForm" stepKey="saveProduct"/>
|
1183 | 1181 | <!-- Add product to Page Builder Products content type -->
|
1184 |
| - <comment userInput="Add product to Page Builder Products content type" stepKey="commentAddProductToPageBuilder"/> |
1185 | 1182 | <actionGroup ref="navigateToCMSPage" stepKey="navigateToCMSPage">
|
1186 | 1183 | <argument name="CMSPage" value="$$createCMSPage$$"/>
|
1187 | 1184 | </actionGroup>
|
|
1207 | 1204 | <argument name="count" value="1"/>
|
1208 | 1205 | </actionGroup>
|
1209 | 1206 | <!-- Verify displayed swatches -->
|
1210 |
| - <comment userInput="Verify displayed swatches" stepKey="commentVerifySwatches"/> |
1211 |
| - <seeElement selector="{{StorefrontProductInfoMainSection.productSwatch(visualSwatchOption1.default_label)}}" stepKey="assertFirstSwatch"/> |
1212 |
| - <seeElement selector="{{StorefrontProductInfoMainSection.productSwatch(visualSwatchOption2.default_label)}}" stepKey="assertSecondSwatch"/> |
| 1207 | + <actionGroup ref="validateSwatchInProducts" stepKey="assertFirstSwatch"> |
| 1208 | + <argument name="page" value="ProductsOnStage"/> |
| 1209 | + <argument name="swatch" value="visualSwatchOption1"/> |
| 1210 | + </actionGroup> |
| 1211 | + <actionGroup ref="validateSwatchInProducts" stepKey="assertSecondSwatch"> |
| 1212 | + <argument name="page" value="ProductsOnStage"/> |
| 1213 | + <argument name="swatch" value="visualSwatchOption2"/> |
| 1214 | + </actionGroup> |
1213 | 1215 | <!-- Save page and verify swatches display on reload -->
|
1214 |
| - <comment userInput="Save page and verify swatches display on reload" stepKey="commentSaveAndReload"/> |
1215 | 1216 | <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage"/>
|
1216 | 1217 | <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStageAfterSave"/>
|
1217 | 1218 | <actionGroup ref="validateProductCountInProducts" stepKey="validateProductsCountStageAfterSave">
|
1218 | 1219 | <argument name="page" value="ProductsOnStage"/>
|
1219 | 1220 | <argument name="count" value="1"/>
|
1220 | 1221 | </actionGroup>
|
1221 |
| - <seeElement selector="{{StorefrontProductInfoMainSection.productSwatch(visualSwatchOption1.default_label)}}" stepKey="assertFirstSwatchAfterSave"/> |
1222 |
| - <seeElement selector="{{StorefrontProductInfoMainSection.productSwatch(visualSwatchOption2.default_label)}}" stepKey="assertSecondSwatchAfterSave"/> |
| 1222 | + <actionGroup ref="validateSwatchInProducts" stepKey="assertFirstSwatchAfterSave"> |
| 1223 | + <argument name="page" value="ProductsOnStage"/> |
| 1224 | + <argument name="swatch" value="visualSwatchOption1"/> |
| 1225 | + </actionGroup> |
| 1226 | + <actionGroup ref="validateSwatchInProducts" stepKey="assertSecondSwatchAfterSave"> |
| 1227 | + <argument name="page" value="ProductsOnStage"/> |
| 1228 | + <argument name="swatch" value="visualSwatchOption2"/> |
| 1229 | + </actionGroup> |
1223 | 1230 | </test>
|
1224 | 1231 | </tests>
|
0 commit comments