|
1169 | 1169 | </after>
|
1170 | 1170 | <!-- Create a configurable swatch product via the UI -->
|
1171 | 1171 | <comment userInput="Create a configurable swatch product via the UI" stepKey="commentCreateConfigurableProduct" />
|
1172 |
| - <amOnPage url="{{AdminProductIndexPage.url}}" stepKey="goToProductIndex"/> |
1173 |
| - <waitForPageLoad stepKey="waitForProductPage"/> |
| 1172 | + <actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="goToProductIndex" /> |
1174 | 1173 | <actionGroup ref="goToCreateProductPage" stepKey="goToCreateProductPage">
|
1175 | 1174 | <argument name="product" value="BaseConfigurableProduct"/>
|
1176 | 1175 | </actionGroup>
|
|
1180 | 1179 | <!-- Add swatch attribute to configurable product -->
|
1181 | 1180 | <comment userInput="Add swatch attribute to configurable product" stepKey="commentAddSwatchesToProduct"/>
|
1182 | 1181 | <actionGroup ref="AddVisualSwatchToProductWithStorefrontConfigActionGroup" stepKey="addSwatchToProduct"/>
|
1183 |
| - <click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="saveProduct"/> |
| 1182 | + <actionGroup ref="saveProductForm" stepKey="saveProduct"/> |
1184 | 1183 | <!-- Add product to Page Builder Products content type -->
|
1185 | 1184 | <comment userInput="Add product to Page Builder Products content type" stepKey="commentAddProductToPageBuilder"/>
|
1186 | 1185 | <actionGroup ref="navigateToCMSPage" stepKey="navigateToCMSPage">
|
|
1209 | 1208 | </actionGroup>
|
1210 | 1209 | <!-- Verify displayed swatches -->
|
1211 | 1210 | <comment userInput="Verify displayed swatches" stepKey="commentVerifySwatches"/>
|
1212 |
| - <seeElement selector="{{StorefrontProductInfoMainSection.productSwatch(visualSwatchOption1.default_label)}}" stepKey="assertAddedWidgetS"/> |
1213 |
| - <seeElement selector="{{StorefrontProductInfoMainSection.productSwatch(visualSwatchOption2.default_label)}}" stepKey="assertAddedWidgetM"/> |
| 1211 | + <seeElement selector="{{StorefrontProductInfoMainSection.productSwatch(visualSwatchOption1.default_label)}}" stepKey="assertFirstSwatch"/> |
| 1212 | + <seeElement selector="{{StorefrontProductInfoMainSection.productSwatch(visualSwatchOption2.default_label)}}" stepKey="assertSecondSwatch"/> |
1214 | 1213 | <!-- Save page and verify swatches display on reload -->
|
1215 | 1214 | <comment userInput="Save page and verify swatches display on reload" stepKey="commentSaveAndReload"/>
|
1216 | 1215 | <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage"/>
|
1217 |
| - <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage2"/> |
1218 |
| - <actionGroup ref="validateProductCountInProducts" stepKey="validateProductsCountStage2"> |
| 1216 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStageAfterSave"/> |
| 1217 | + <actionGroup ref="validateProductCountInProducts" stepKey="validateProductsCountStageAfterSave"> |
1219 | 1218 | <argument name="page" value="ProductsOnStage"/>
|
1220 | 1219 | <argument name="count" value="1"/>
|
1221 | 1220 | </actionGroup>
|
1222 |
| - <seeElement selector="{{StorefrontProductInfoMainSection.productSwatch(visualSwatchOption1.default_label)}}" stepKey="assertAddedWidgetS2"/> |
1223 |
| - <seeElement selector="{{StorefrontProductInfoMainSection.productSwatch(visualSwatchOption2.default_label)}}" stepKey="assertAddedWidgetM2"/> |
| 1221 | + <seeElement selector="{{StorefrontProductInfoMainSection.productSwatch(visualSwatchOption1.default_label)}}" stepKey="assertFirstSwatchAfterSave"/> |
| 1222 | + <seeElement selector="{{StorefrontProductInfoMainSection.productSwatch(visualSwatchOption2.default_label)}}" stepKey="assertSecondSwatchAfterSave"/> |
1224 | 1223 | </test>
|
1225 | 1224 | </tests>
|
0 commit comments