Skip to content

Commit e0987fe

Browse files
committed
PB-76: PageBuilder Product List Template Is Missing Product Color & Size Options in Admin
1 parent 41a5829 commit e0987fe

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

app/code/Magento/PageBuilder/Test/Mftf/Test/AdminPageBuilderProductsCarouselTests.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@
722722
<argument name="page" value="ProductsCarouselOnStage"/>
723723
<argument name="count" value="1"/>
724724
</actionGroup>
725-
<actionGroup ref="validateProductCountInProducts" stepKey="validateProductsCountStage2">
725+
<actionGroup ref="validateProductCountInProducts" stepKey="validateProductsCountStageAfterSave">
726726
<argument name="page" value="ProductsCarouselOnStage"/>
727727
<argument name="count" value="1"/>
728728
</actionGroup>

app/code/Magento/PageBuilder/Test/Mftf/Test/AdminPageBuilderProductsGridTests.xml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,8 +1169,7 @@
11691169
</after>
11701170
<!-- Create a configurable swatch product via the UI -->
11711171
<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" />
11741173
<actionGroup ref="goToCreateProductPage" stepKey="goToCreateProductPage">
11751174
<argument name="product" value="BaseConfigurableProduct"/>
11761175
</actionGroup>
@@ -1180,7 +1179,7 @@
11801179
<!-- Add swatch attribute to configurable product -->
11811180
<comment userInput="Add swatch attribute to configurable product" stepKey="commentAddSwatchesToProduct"/>
11821181
<actionGroup ref="AddVisualSwatchToProductWithStorefrontConfigActionGroup" stepKey="addSwatchToProduct"/>
1183-
<click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="saveProduct"/>
1182+
<actionGroup ref="saveProductForm" stepKey="saveProduct"/>
11841183
<!-- Add product to Page Builder Products content type -->
11851184
<comment userInput="Add product to Page Builder Products content type" stepKey="commentAddProductToPageBuilder"/>
11861185
<actionGroup ref="navigateToCMSPage" stepKey="navigateToCMSPage">
@@ -1209,17 +1208,17 @@
12091208
</actionGroup>
12101209
<!-- Verify displayed swatches -->
12111210
<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"/>
12141213
<!-- Save page and verify swatches display on reload -->
12151214
<comment userInput="Save page and verify swatches display on reload" stepKey="commentSaveAndReload"/>
12161215
<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">
12191218
<argument name="page" value="ProductsOnStage"/>
12201219
<argument name="count" value="1"/>
12211220
</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"/>
12241223
</test>
12251224
</tests>

0 commit comments

Comments
 (0)