Skip to content

Commit 56681f0

Browse files
committed
MC-10973: Simple product with MAP assigned to configurable should displays the same way as products with special price
- Update automated test script
1 parent f0944fa commit 56681f0

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

app/code/Magento/Catalog/Test/Mftf/Data/ProductData.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,15 @@
146146
<requiredEntity type="product_extension_attribute">EavStockItem</requiredEntity>
147147
<requiredEntity type="custom_attribute">CustomAttributeProductAttribute</requiredEntity>
148148
</entity>
149+
<entity name="ApiSimpleProductWithPrice50" type="product2" extends="ApiSimpleOne">
150+
<data key="price">50</data>
151+
</entity>
152+
<entity name="ApiSimpleProductWithPrice60" type="product2" extends="ApiSimpleTwo">
153+
<data key="price">60</data>
154+
</entity>
155+
<entity name="ApiSimpleProductWithPrice70" type="product2" extends="SimpleOne">
156+
<data key="price">70</data>
157+
</entity>
149158
<entity name="ApiSimpleTwoHidden" type="product2">
150159
<data key="sku" unique="suffix">api-simple-product-two</data>
151160
<data key="type_id">simple</data>

app/code/Magento/Catalog/Test/Mftf/Section/StorefrontProductInfoMainSection.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
<element name="mapPrice" type="text" selector="//div[@class='price-box price-final_price']//span[contains(@class, 'price-msrp_price')]"/>
3333
<element name="clickForPriceLink" type="text" selector="//div[@class='price-box price-final_price']//a[contains(text(), 'Click for price')]"/>
3434

35-
3635
<!-- The parameter is the nth custom option that you want to get -->
3736
<element name="nthCustomOption" type="block" selector="//*[@id='product-options-wrapper']/*[@class='fieldset']/*[contains(@class, 'field')][{{customOptionNum}}]" parameterized="true" />
3837
<!-- The 1st parameter is the nth custom option, the 2nd parameter is the nth value in the option -->

app/code/Magento/Msrp/Test/Mftf/Test/StorefrontProductWithMapAssignedConfigProductIsCorrectTest.xml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,20 +53,16 @@
5353
<requiredEntity createDataKey="createConfigProductAttribute"/>
5454
</getData>
5555

56-
5756
<!-- Create the 2 children that will be a part of the configurable product -->
58-
<createData entity="ApiSimpleOne" stepKey="createConfigChildProduct1">
59-
<field key="price">50.00</field>
57+
<createData entity="ApiSimpleProductWithPrice50" stepKey="createConfigChildProduct1">
6058
<requiredEntity createDataKey="createConfigProductAttribute"/>
6159
<requiredEntity createDataKey="getConfigAttributeOption1"/>
6260
</createData>
63-
<createData entity="ApiSimpleTwo" stepKey="createConfigChildProduct2">
64-
<field key="price">60.00</field>
61+
<createData entity="ApiSimpleProductWithPrice60" stepKey="createConfigChildProduct2">
6562
<requiredEntity createDataKey="createConfigProductAttribute"/>
6663
<requiredEntity createDataKey="getConfigAttributeOption2"/>
6764
</createData>
68-
<createData entity="SimpleOne" stepKey="createConfigChildProduct3">
69-
<field key="price">70.00</field>
65+
<createData entity="ApiSimpleProductWithPrice70" stepKey="createConfigChildProduct3">
7066
<requiredEntity createDataKey="createConfigProductAttribute"/>
7167
<requiredEntity createDataKey="getConfigAttributeOption3"/>
7268
</createData>

0 commit comments

Comments
 (0)