File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
app/code/Magento/ConfigurableProduct/Test/Mftf Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1717 </arguments >
1818
1919 <grabTextFrom selector =" {{StorefrontProductInfoMainSection.tierPriceExcludingPrice}}" stepKey =" tierPriceExcluding" />
20- <assertEquals stepKey =" assertTierPriceTextOnProductPage" >
20+ <assertStringContainsString stepKey =" assertTierPriceTextOnProductPage" >
2121 <expectedResult type =" string" >{{excludingPrice}}</expectedResult >
2222 <actualResult type =" variable" >tierPriceExcluding</actualResult >
23- </assertEquals >
23+ </assertStringContainsString >
2424 </actionGroup >
2525</actionGroups >
Original file line number Diff line number Diff line change 111111 <selectOption userInput =" $$createConfigProductAttributeOptionOne.option[store_labels][1][label]$$"
112112 selector =" {{StorefrontProductInfoMainSection.productAttributeOptionsSelectButton}}"
113113 stepKey =" selectOption" />
114- <grabTextFrom selector =" {{StorefrontProductInfoMainSection.tierPriceText}}" stepKey =" tierPriceText" />
115- <assertStringContainsString stepKey =" assertTierPriceTextOnProductPage" >
116- <expectedResult type =" string" >Buy {{tierProductPrice.quantity}} for $97.43 each and save 27%</expectedResult >
117- <actualResult type =" variable" >tierPriceText</actualResult >
118- </assertStringContainsString >
119114
120- <!-- Assert tier price excluding price -->
115+ <!-- Assert tier price excluding including price item -->
116+ <actionGroup ref =" AssertStorefrontProductDetailPageTierPriceActionGroup" stepKey =" assertProductTierPriceExcludingIncludingTax" >
117+ <argument name =" tierProductPriceDiscountQuantity" value =" 2" />
118+ <argument name =" productPriceWithAppliedTierPriceDiscount" value =" 97.43 ${{tierProductPrice.price}}" />
119+ <argument name =" productSavedPricePercent" value =" 27" />
120+ </actionGroup >
121121 <actionGroup ref =" StorefrontAssertExcludingTierPriceActionGroup" stepKey =" assertTierPriceExcludingPrice" >
122122 <argument name =" excludingPrice" value =" ${{tierProductPrice.price}}" />
123123 </actionGroup >
You can’t perform that action at this time.
0 commit comments