Skip to content

Commit 16f51ec

Browse files
ACQE-9003: Image is taken from configurable product if images are not specified with the selected swatches
- Created new test and section file
1 parent 91eea4b commit 16f51ec

File tree

2 files changed

+273
-0
lines changed

2 files changed

+273
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright 2025 Adobe
5+
* All Rights Reserved.
6+
*/
7+
-->
8+
9+
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
11+
<section name="StorefrontCategorySwatchSection">
12+
<element name="swatchOptionByLabel" type="button" selector=".products-grid .swatch-option[data-option-label='{{label}}']" parameterized="true"/>
13+
<element name="productImageInGrid" type="block" selector=".products-grid .product-item-photo img"/>
14+
</section>
15+
</sections>

0 commit comments

Comments
 (0)