We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5acbf03 commit 0794361Copy full SHA for 0794361
dev/tests/api-functional/testsuite/Magento/GraphQl/Swatches/ProductSwatchDataTest.php
@@ -103,6 +103,9 @@ public function testVisualSwatchDataValues()
103
label
104
swatch {
105
value
106
+ ... on ImageSwatchData {
107
+ thumbnail
108
+ }
109
}
110
111
@@ -143,5 +146,9 @@ public function testVisualSwatchDataValues()
143
146
$configurableProductOptionsSelection['values'][1]['swatch']['value'],
144
147
$this->swatchMediaHelper->getSwatchAttributeImage(Swatch::SWATCH_IMAGE_NAME, $imageName)
145
148
);
149
+ $this->assertEquals(
150
+ $configurableProductOptionsSelection['values'][1]['swatch']['thumbnail'],
151
+ $this->swatchMediaHelper->getSwatchAttributeImage(Swatch::SWATCH_THUMBNAIL_NAME, $imageName)
152
+ );
153
154
0 commit comments