Skip to content

Commit 659a6d9

Browse files
refactor mftf
1 parent 59d5d30 commit 659a6d9

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

app/code/Magento/ConfigurableProduct/Test/Mftf/ActionGroup/StorefrontAssertExcludingTierPriceActionGroup.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
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>

app/code/Magento/ConfigurableProduct/Test/Mftf/Test/AdminConfigurableProductWithTierPriceWithTaxTest.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,13 @@
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>

0 commit comments

Comments
 (0)