Skip to content

Commit acec523

Browse files
committed
ACQE:8577: Validate price changes for configurable product with dropdown and text swatch attributes displayed in widget
- Moved test file from widget to catalog
1 parent f2649f5 commit acec523

File tree

3 files changed

+50
-60
lines changed

3 files changed

+50
-60
lines changed

app/code/Magento/Widget/Test/Mftf/Test/StorefrontValidatePriceChangesForConfigurableProductWithMultipleAttributesInWidgetTest.xml renamed to app/code/Magento/Catalog/Test/Mftf/Test/StorefrontValidatePriceChangesForConfigurableProductWithMultipleAttributesInWidgetTest.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
1010
<test name="StorefrontValidatePriceChangesForConfigurableProductWithMultipleAttributesInWidgetTest">
1111
<annotations>
12-
<features value="Widget"/>
13-
<stories value="Catalog Products List Widget"/>
14-
<title value="Validate price changes for configurable product with dropdown and text swatch attributes displayed in widget"/>
15-
<description value="Create dropdown and text swatch attributes, create two configurable products with different attribute combinations, add widget, and validate price changes on storefront"/>
12+
<features value="Catalog"/>
13+
<stories value="Product Price Display"/>
14+
<title value="Validate price changes for configurable product with dropdown and text swatch attributes on storefront"/>
15+
<description value="Create dropdown and text swatch attributes, create two configurable products with different attribute combinations, and validate price changes on storefront product page"/>
16+
<testCaseId value="AC-8423"/>
1617
<severity value="MAJOR"/>
17-
<group value="Widget"/>
18+
<group value="Catalog"/>
1819
<group value="ConfigurableProduct"/>
19-
<group value="Swatches"/>
2020
</annotations>
2121
<before>
2222
<!-- Step-1: Login to admin -->
@@ -184,4 +184,4 @@
184184
<waitForElementVisible selector="{{StorefrontProductInfoMainSection.productPrice}}" stepKey="waitForPriceAfterSmallSelectionAgain"/>
185185
<waitForText selector="{{StorefrontProductInfoMainSection.productPrice}}" userInput="$110.00" stepKey="verifySmallPriceAgain"/>
186186
</test>
187-
</tests>
187+
</tests>

app/code/Magento/ConfigurableProduct/Test/Mftf/Data/ProductConfigurableAttributeData.xml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,4 +127,47 @@
127127
<data key="admin_label">Yellow</data>
128128
<data key="default_label">Yellow</data>
129129
</entity>
130+
<!-- Dropdown Size Attribute -->
131+
<entity name="DropdownSizeAttributeData" type="attribute">
132+
<data key="frontend_label">my size</data>
133+
<data key="attribute_code">my_size</data>
134+
<data key="attribute_type">Dropdown</data>
135+
<data key="scope">Global</data>
136+
</entity>
137+
<!-- Text Swatch Color Attribute -->
138+
<entity name="TextSwatchColorAttributeData" type="attribute">
139+
<data key="frontend_label">color1</data>
140+
<data key="attribute_code">color_swatch</data>
141+
<data key="attribute_type">swatch_text</data>
142+
<data key="scope">Global</data>
143+
</entity>
144+
<!-- Size Options -->
145+
<entity name="AttributeOptionSmall" type="option">
146+
<data key="value">Small</data>
147+
</entity>
148+
<entity name="AttributeOptionMedium" type="option">
149+
<data key="value">Medium</data>
150+
</entity>
151+
<entity name="AttributeOptionLarge" type="option">
152+
<data key="value">Large</data>
153+
</entity>
154+
<!-- Color Options -->
155+
<entity name="AttributeOptionBlack" type="option">
156+
<data key="value">Black</data>
157+
</entity>
158+
<entity name="AttributeOptionWhite" type="option">
159+
<data key="value">White</data>
160+
</entity>
161+
<entity name="AttributeOptionBlue" type="option">
162+
<data key="value">Blue</data>
163+
</entity>
164+
<!-- Attribute Display Values for product configuration -->
165+
<entity name="SizeAttributeDisplay" type="display">
166+
<data key="small">my size: Small</data>
167+
<data key="large">my size: Large</data>
168+
<data key="small_black">my size: Small, color1: Black</data>
169+
<data key="large_black">my size: Large, color1: Black</data>
170+
<data key="small_white">my size: Small, color1: White</data>
171+
<data key="large_white">my size: Large, color1: White</data>
172+
</entity>
130173
</entities>

app/code/Magento/Widget/Test/Mftf/Data/ProductAttributeData.xml

Lines changed: 0 additions & 53 deletions
This file was deleted.

0 commit comments

Comments
 (0)