Skip to content

Commit 28d52c7

Browse files
Merge branch 'ACQE-8844' into ACQE-functional-deployment-version23
2 parents fa4643f + 4f371ba commit 28d52c7

File tree

3 files changed

+267
-0
lines changed

3 files changed

+267
-0
lines changed

app/code/Magento/Swatches/Test/Mftf/Data/SwatchAttributeOptionData.xml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,61 @@
3232
<requiredEntity type="StoreLabel">Option3Store0</requiredEntity>
3333
<requiredEntity type="StoreLabel">Option3Store1</requiredEntity>
3434
</entity>
35+
<!-- Visual Swatch Options: A, B, C -->
36+
<entity name="VisualSwatchOptionA" type="ProductSwatchAttributeOption">
37+
<var key="attribute_code" entityKey="attribute_code" entityType="ProductAttribute"/>
38+
<data key="label">A</data>
39+
<data key="is_default">false</data>
40+
<data key="sort_order">0</data>
41+
</entity>
42+
<entity name="VisualSwatchOptionB" type="ProductSwatchAttributeOption">
43+
<var key="attribute_code" entityKey="attribute_code" entityType="ProductAttribute"/>
44+
<data key="label">B</data>
45+
<data key="is_default">false</data>
46+
<data key="sort_order">1</data>
47+
</entity>
48+
<entity name="VisualSwatchOptionC" type="ProductSwatchAttributeOption">
49+
<var key="attribute_code" entityKey="attribute_code" entityType="ProductAttribute"/>
50+
<data key="label">C</data>
51+
<data key="is_default">false</data>
52+
<data key="sort_order">2</data>
53+
</entity>
54+
<!-- Text Swatch Attribute 1 Options: 1, 2, 3 -->
55+
<entity name="TextSwatchOption1" type="ProductSwatchAttributeOption">
56+
<var key="attribute_code" entityKey="attribute_code" entityType="ProductAttribute"/>
57+
<data key="label">1</data>
58+
<data key="is_default">false</data>
59+
<data key="sort_order">0</data>
60+
</entity>
61+
<entity name="TextSwatchOption2" type="ProductSwatchAttributeOption">
62+
<var key="attribute_code" entityKey="attribute_code" entityType="ProductAttribute"/>
63+
<data key="label">2</data>
64+
<data key="is_default">false</data>
65+
<data key="sort_order">1</data>
66+
</entity>
67+
<entity name="TextSwatchOption3" type="ProductSwatchAttributeOption">
68+
<var key="attribute_code" entityKey="attribute_code" entityType="ProductAttribute"/>
69+
<data key="label">3</data>
70+
<data key="is_default">false</data>
71+
<data key="sort_order">2</data>
72+
</entity>
73+
<!-- Text Swatch Attribute 2 Options: X, Y, Z -->
74+
<entity name="TextSwatchOptionX" type="ProductSwatchAttributeOption">
75+
<var key="attribute_code" entityKey="attribute_code" entityType="ProductAttribute"/>
76+
<data key="label">X</data>
77+
<data key="is_default">false</data>
78+
<data key="sort_order">0</data>
79+
</entity>
80+
<entity name="TextSwatchOptionY" type="ProductSwatchAttributeOption">
81+
<var key="attribute_code" entityKey="attribute_code" entityType="ProductAttribute"/>
82+
<data key="label">Y</data>
83+
<data key="is_default">false</data>
84+
<data key="sort_order">1</data>
85+
</entity>
86+
<entity name="TextSwatchOptionZ" type="ProductSwatchAttributeOption">
87+
<var key="attribute_code" entityKey="attribute_code" entityType="ProductAttribute"/>
88+
<data key="label">Z</data>
89+
<data key="is_default">false</data>
90+
<data key="sort_order">2</data>
91+
</entity>
3592
</entities>

app/code/Magento/Swatches/Test/Mftf/Section/StorefrontCategorySidebarSection.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@
1414
<element name="expandedSwatchThumbnails" type="block" selector="//div[@aria-expanded='true' and contains(text(),'{{attribute_code}}')]/..//div[contains(@class,'{{swatch_types}}')]" parameterized="true"/>
1515
<element name="swatchThumbnailsImgLayeredNav" type="block" selector="//div[@class='image' and contains(@style,'{{swatch_thumb}}')]" parameterized="true"/>
1616
<element name="swatchTextLayeredNav" type="block" selector="//div[@class='swatch-option text ' and @data-option-label='{{args}}']" parameterized="true"/>
17+
<element name="swatchVisualLayeredNav" type="block" selector="//div[@class='swatch-option ' and @data-option-label='{{args}}']" parameterized="true"/>
1718
<element name="swatchTextLayeredNavHover" type="block" selector="//div[@class='title' and text()='{{args}}']" parameterized="true"/>
1819
<element name="swatchSelectedInFilteredProd" type="block" selector="//div[@class='swatch-option {{args}} selected']" parameterized="true"/>
1920
<element name="swatchTextFilteredProdHover" type="block" selector="//div[@class='swatch-option-tooltip']//div[@class='title' and contains(text(),'{{args}}')]" parameterized="true"/>
21+
<element name="removeFilterByAttributeLabel" type="button" selector="//ol[@class='items']//li[contains(@class,'item')]//span[@class='filter-label' and contains(text(),'{{attribute_label}}')]/..//a[contains(@class,'action remove')]" parameterized="true"/>
2022
</section>
2123
</sections>

0 commit comments

Comments
 (0)