Skip to content

Commit e99a705

Browse files
ACQE-6444:Product Price with tax calculation displays on Paypal Pay Later message in Product page
Added tax rule.
1 parent 9b81b28 commit e99a705

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

app/code/Magento/Paypal/Test/Mftf/Test/StorefrontProductPriceWithTaxDisplayedInPayPalPayLaterMessageTest.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,16 @@
3232
<actionGroup ref="AdminPayPalExpressCheckoutPayLaterEnableActionGroup" stepKey="activePayLater">
3333
<argument name="countryCode" value="us"/>
3434
</actionGroup>
35+
<!-- Create Tax Rule w/ NY & CA Tax Rates -->
36+
<actionGroup ref="AdminGoToNewTaxRulePageActionGroup" stepKey="goToCreateTaxRulePage"/>
37+
<fillField selector="{{AdminTaxRulesSection.ruleName}}" userInput="{{SimpleTaxRule.code}}" stepKey="fillRuleName"/>
38+
<actionGroup ref="AddNewTaxRateNoZipActionGroup" stepKey="addNYTaxRate">
39+
<argument name="taxCode" value="SimpleTaxNY"/>
40+
</actionGroup>
41+
<actionGroup ref="AddNewTaxRateNoZipActionGroup" stepKey="addCATaxRate">
42+
<argument name="taxCode" value="SimpleTaxCA"/>
43+
</actionGroup>
44+
<actionGroup ref="AdminSaveTaxRuleActionGroup" stepKey="saveTaxRule"/>
3545
</before>
3646
<after>
3747
<!-- Delete Product -->
@@ -41,6 +51,12 @@
4151
<actionGroup ref="AdminPayPalExpressCheckoutDisableActionGroup" stepKey="configPaypalExpressCheckoutDisable"/>
4252
<!-- Revert to default tax setting-->
4353
<magentoCLI command="config:set tax/calculation/price_includes_tax 0" stepKey="disableCatalogIncludingTax"/>
54+
<actionGroup ref="AdminTaxRuleGridOpenPageActionGroup" stepKey="goToTaxRulesPage"/>
55+
<actionGroup ref="deleteEntitySecondaryGrid" stepKey="deleteRule">
56+
<argument name="name" value="{{SimpleTaxRule.code}}"/>
57+
<argument name="searchInput" value="{{AdminSecondaryGridSection.taxIdentifierSearch}}"/>
58+
</actionGroup>
59+
<actionGroup ref="AdminTaxRateGridOpenPageActionGroup" stepKey="goToTaxRatesPage"/>
4460
<actionGroup ref="AdminLogoutActionGroup" stepKey="logoutFromAdmin"/>
4561
</after>
4662
<!-- Go to StoreFront -->
@@ -102,3 +118,4 @@
102118
<waitForText userInput="4 payments of $23.10 due every 2 weeks, starting today." selector="{{StorefrontPayPalPayLaterSection.payPalPayLaterMessage}}" stepKey="verifyPayPalPayLaterMessageAfterTax"/>
103119
</test>
104120
</tests>
121+

0 commit comments

Comments
 (0)