Skip to content

Commit c8a5c57

Browse files
committed
ACQE-4289:Test for Related Products Price Box is not being updated
1 parent 57dbec6 commit c8a5c57

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
<element name="productOptionSelect" type="select" selector="//*[@id='product-options-wrapper']//div[@class='fieldset']//label[contains(.,'{{var1}}')]/../div[@class='control']//select" parameterized="true"/>
3333
<element name="asLowAs" type="input" selector="span[class='price-wrapper '] "/>
3434
<element name="asLowAsLabel" type="input" selector="//strong[@id='block-related-heading']/following::span[@class='price-label'][1]"/>
35+
<element name="asLowAsLabelAgain" type="input" selector="//strong[@id='block-related-heading']/following::span[@class='price-label'][2]"/>
3536
<element name="specialPriceValue" type="text" selector="//span[@class='special-price']//span[@class='price']"/>
3637
<element name="mapPrice" type="text" selector="//div[@class='price-box price-final_price']//span[contains(@class, 'price-msrp_price')]"/>
3738
<element name="clickForPriceLink" type="text" selector="//div[@class='price-box price-final_price']//a[contains(text(), 'Click for price')]"/>

app/code/Magento/Catalog/Test/Mftf/Test/AdminTestForRelatedProductsPriceBoxIsNotBeingUpdatedWhenNotNeeded.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,11 @@
163163
<actualResult type="variable">grabProductPrice</actualResult>
164164
<expectedResult type="string">As low as</expectedResult>
165165
</assertEquals>
166+
<grabTextFrom selector="{{StorefrontProductInfoMainSection.asLowAsLabelAgain}}" stepKey="grabProductPriceSecond"/>
167+
<assertEquals message="ExpectedPrice" stepKey="assertcreateConfigProductSecond">
168+
<actualResult type="variable">grabProductPrice</actualResult>
169+
<expectedResult type="string">As low as</expectedResult>
170+
</assertEquals>
166171
<scrollToTopOfPage stepKey="scrollToTopOfPage5"/>
167172
<selectOption userInput="option1" selector="{{StorefrontProductInfoMainSection.productAttributeOptionsSelectButton}}" stepKey="selectOption3"/>
168173
<waitForPageLoad time="30" stepKey="waitForPreviewLoad"/>
@@ -172,6 +177,12 @@
172177
<actualResult type="variable">grabProductPrice</actualResult>
173178
<expectedResult type="string">As low as</expectedResult>
174179
</assertEquals>
180+
<grabTextFrom selector="{{StorefrontProductInfoMainSection.asLowAsLabelAgain}}" stepKey="grabProductPriceAgainAgain"/>
181+
<assertEquals message="ExpectedPrice" stepKey="assertcreateConfigProductAgainAgain">
182+
<actualResult type="variable">grabProductPrice</actualResult>
183+
<expectedResult type="string">As low as</expectedResult>
184+
</assertEquals>
185+
175186
</test>
176187
</tests>
177188

0 commit comments

Comments
 (0)