Skip to content

Commit 0794361

Browse files
committed
PWA-1326: Implement the schema changes for Configurable Options Selection
- add test for swatches
1 parent 5acbf03 commit 0794361

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/Swatches/ProductSwatchDataTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ public function testVisualSwatchDataValues()
103103
label
104104
swatch {
105105
value
106+
... on ImageSwatchData {
107+
thumbnail
108+
}
106109
}
107110
}
108111
}
@@ -143,5 +146,9 @@ public function testVisualSwatchDataValues()
143146
$configurableProductOptionsSelection['values'][1]['swatch']['value'],
144147
$this->swatchMediaHelper->getSwatchAttributeImage(Swatch::SWATCH_IMAGE_NAME, $imageName)
145148
);
149+
$this->assertEquals(
150+
$configurableProductOptionsSelection['values'][1]['swatch']['thumbnail'],
151+
$this->swatchMediaHelper->getSwatchAttributeImage(Swatch::SWATCH_THUMBNAIL_NAME, $imageName)
152+
);
146153
}
147154
}

0 commit comments

Comments
 (0)