Skip to content

Commit 9c6f13c

Browse files
committed
MC-24253: [MFTF Test] Storefront Gallery - Configurable Product with Visual Swatch: prepend variation media
1 parent 70cf0c2 commit 9c6f13c

File tree

4 files changed

+293
-2
lines changed

4 files changed

+293
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
-->
7+
8+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
10+
<actionGroup name="AssertStorefrontProductImageAppearsOnProductPagePreviewActionGroup">
11+
<annotations>
12+
<description>Validate that the Product Image is present on preview and correct on frontend product page.</description>
13+
</annotations>
14+
<arguments>
15+
<argument name="productImage" type="string" defaultValue="{{MagentoLogo.file}}"/>
16+
</arguments>
17+
18+
<waitForElementNotVisible selector="{{StorefrontProductMediaSection.gallerySpinner}}" stepKey="waitGallerySpinnerDisappear"/>
19+
<seeElement selector="{{StorefrontProductMediaSection.gallery}}" stepKey="seeProductGallery"/>
20+
<seeElement selector="{{StorefrontProductMediaSection.productImage(productImage)}}" stepKey="seeCorrectProductImage"/>
21+
</actionGroup>
22+
</actionGroups>

app/code/Magento/ConfigurableProduct/Test/Mftf/Test/StorefrontGalleryConfigurableProductWithSeveralAttributesTest.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<test name="StorefrontGalleryConfigurableProductWithSeveralAttributesTest">
1212
<annotations>
1313
<features value="ConfigurableProduct"/>
14-
<stories value="Verify functionality of updating Gallery items on 'view Product' Storefront page for Configurable Product with several attributes of different types"/>
14+
<stories value="Prepend variation media on storefront"/>
1515
<title value="Storefront Gallery - Configurable Product with several attributes: prepend variation media"/>
1616
<description value="Storefront Gallery - Configurable Product with several attributes: prepend variation media"/>
1717
<severity value="AVERAGE"/>
@@ -20,6 +20,7 @@
2020
<group value="configurableProduct"/>
2121
<group value="swatch"/>
2222
</annotations>
23+
2324
<before>
2425
<createData entity="ProductVideoYoutubeApiKeyConfig" stepKey="setupYoutubeApiKey"/>
2526
<!--Create 1 configurable product with 2 variations-->
@@ -165,7 +166,7 @@
165166
</after>
166167

167168
<actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="openConfigurableProductPage">
168-
<argument name="productUrl" value="$$createConfigurableProduct.custom_attributes[url_key]$$"/>
169+
<argument name="productUrl" value="$createConfigurableProduct.custom_attributes[url_key]$"/>
169170
</actionGroup>
170171

171172
<!--CASE 0: Selected options = none; Expected media : C1, C2, C3-->

0 commit comments

Comments
 (0)