Skip to content

Commit 2200bd1

Browse files
Ashish.Kumar18Ashish.Kumar18
authored andcommitted
ACQE-4080: Changed the xpath of tax details
1 parent d6ff7b7 commit 2200bd1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/code/Magento/Checkout/Test/Mftf/Section/CheckoutPaymentSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
<element name="productOptionsActiveByProductItemPrice" type="text" selector="//div[@class='subtotal']//span[@class='price'][contains(.,'{{price}}')]//ancestor::div[@class='product-item-details']//div[@class='product options active']" parameterized="true"/>
5353
<element name="productItemPriceByName" type="text" selector="//div[@class='product-item-details'][contains(., '{{ProductName}}')]//span[@class='price']" parameterized="true"/>
5454
<element name="tax" type="text" selector="[data-th='Tax'] span" timeout="30"/>
55+
<element name="taxDetails" type="text" selector=".totals-tax-details th.mark" timeout="30"/>
5556
<element name="taxPercentage" type="text" selector=".totals-tax-details .mark"/>
5657
<element name="orderSummaryTotalIncluding" type="text" selector="//tr[@class='grand totals incl']//span[@class='price']" />
5758
<element name="orderSummaryTotalExcluding" type="text" selector="//tr[@class='grand totals excl']//span[@class='price']" />

app/code/Magento/Tax/Test/Mftf/Test/StorefrontTaxQuoteCheckoutTest/StorefrontTaxQuoteCheckoutGuestVirtualTest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@
8484
<actionGroup ref="StorefrontOpenCheckoutPageActionGroup" stepKey="goToCheckout"/>
8585

8686
<waitForElementVisible stepKey="waitForOverviewVisible" selector="{{CheckoutPaymentSection.tax}}"/>
87-
<see stepKey="seeTax2" selector="{{CheckoutPaymentSection.tax}}" userInput="$8.25"/>
8887
<click stepKey="expandTax2" selector="{{CheckoutPaymentSection.tax}}"/>
88+
<see stepKey="seeTax2" selector="{{CheckoutPaymentSection.taxDetails}}" userInput="California-8.25 (8.25%)"/>
8989
<see stepKey="seeTaxPercent2" selector="{{CheckoutPaymentSection.taxPercentage}}" userInput="({{SimpleTaxCA.rate}}%)"/>
9090
<see stepKey="seeTotalIncl2" selector="{{CheckoutPaymentSection.orderSummaryTotalIncluding}}" userInput="$108.24"/>
9191
<see stepKey="seeTotalExcl2" selector="{{CheckoutPaymentSection.orderSummaryTotalExcluding}}" userInput="$$virtualProduct1.price$$"/>
@@ -104,8 +104,8 @@
104104

105105
<!-- Assert that taxes are applied correctly for NY -->
106106
<waitForElementVisible stepKey="waitForOverviewVisible2" selector="{{CheckoutPaymentSection.tax}}"/>
107-
<see stepKey="seeTax" selector="{{CheckoutPaymentSection.tax}}" userInput="$8.37"/>
108107
<click stepKey="expandTax" selector="{{CheckoutPaymentSection.tax}}"/>
108+
<see stepKey="seeTax" selector="{{CheckoutPaymentSection.taxDetails}}" userInput="New York-8.375 (8.375%)"/>
109109
<see stepKey="seeTaxPercent" selector="{{CheckoutPaymentSection.taxPercentage}}" userInput="({{SimpleTaxNY.rate}}%)"/>
110110
<see stepKey="seeTotalIncl" selector="{{CheckoutPaymentSection.orderSummaryTotalIncluding}}" userInput="$108.36"/>
111111
<see stepKey="seeTotalExcl" selector="{{CheckoutPaymentSection.orderSummaryTotalExcluding}}" userInput="$$virtualProduct1.price$$"/>

0 commit comments

Comments
 (0)