Skip to content

Commit f0bdf49

Browse files
committed
MC-23908: Tax estimation fails on CI
1 parent 4b4a23c commit f0bdf49

File tree

3 files changed

+5
-31
lines changed

3 files changed

+5
-31
lines changed

app/code/Magento/Checkout/Test/Mftf/ActionGroup/StorefrontCartShippingMethodSelectActionGroup.xml

Lines changed: 0 additions & 23 deletions
This file was deleted.

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@
3434
<element name="shippingMethodLabel" type="text" selector="#co-shipping-method-form dl dt span"/>
3535
<element name="methodName" type="text" selector="#co-shipping-method-form label"/>
3636
<element name="shippingPrice" type="text" selector="#co-shipping-method-form span .price"/>
37-
<element name="shippingMethodElementId" type="radio" selector="#s_method_{{carrierCode}}_{{methodCode}}" parameterized="true"/>
38-
<element name="shippingMethodChecked" type="radio" parameterized="true" selector="#co-shipping-method-form #s_method_{{carrierCode}}_{{methodCode}}:checked"/>
37+
<element name="shippingMethodElementId" type="radio" selector="#s_method_{{carrierCode}}_{{methodCode}}" parameterized="true" timeout="30"/>
3938
<element name="estimateShippingAndTaxForm" type="block" selector="#shipping-zip-form"/>
4039
</section>
4140
</sections>

app/code/Magento/Checkout/Test/Mftf/Test/StorefrontVerifyGuestCheckoutUsingFreeShippingAndTaxesTest.xml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@
1010
<test name="StorefrontVerifyGuestCheckoutUsingFreeShippingAndTaxesTest">
1111
<annotations>
1212
<features value="Checkout"/>
13-
<stories value="Checkout"/>
13+
<stories value="Checkout via Guest Checkout"/>
1414
<title value="Verify guest checkout using free shipping and tax variations"/>
1515
<description value="Verify guest checkout using free shipping and tax variations"/>
1616
<severity value="CRITICAL"/>
1717
<testCaseId value="MC-28285"/>
1818
<group value="mtf_migrated"/>
1919
<group value="checkout"/>
20+
<group value="tax"/>
2021
</annotations>
2122
<before>
2223
<createData entity="FlatRateShippingMethodConfig" stepKey="enableFlatRate"/>
@@ -107,7 +108,7 @@
107108
<actionGroup ref="AssertProductNameAndSkuInStorefrontProductPageByCustomAttributeUrlKeyActionGroup" stepKey="openProductPageAndVerifyProduct">
108109
<argument name="product" value="$simpleProduct$"/>
109110
</actionGroup>
110-
<actionGroup ref="StorefrontAddProductToCartWithQtyActionGroup" stepKey="addProductToTheCart">
111+
<actionGroup ref="StorefrontAddProductToCartWithQtyActionGroup" stepKey="addSimpleProductToTheCart">
111112
<argument name="productQty" value="1"/>
112113
</actionGroup>
113114
<actionGroup ref="StorefrontAddConfigurableProductToTheCartActionGroup" stepKey="addConfigurableProductToCart">
@@ -128,10 +129,7 @@
128129
<actionGroup ref="CheckoutFillEstimateShippingAndTaxActionGroup" stepKey="fillEstimateShippingAndTaxFields">
129130
<argument name="address" value="US_Address_NY_Default_Shipping"/>
130131
</actionGroup>
131-
<actionGroup ref="StorefrontCartPageSelectShippingMethodActionGroup" stepKey="selectFreeShippingShippingMethod">
132-
<argument name="carrierCode" value="freeshipping"/>
133-
<argument name="methodCode" value="freeshipping"/>
134-
</actionGroup>
132+
<click selector="{{CheckoutCartSummarySection.shippingMethodElementId('freeshipping', 'freeshipping')}}" stepKey="selectShippingMethod"/>
135133
<see selector="{{CheckoutCartSummarySection.taxAmount}}" userInput="$9.72" stepKey="seeTaxAmount"/>
136134
<reloadPage stepKey="reloadThePage"/>
137135
<waitForPageLoad stepKey="waitForPageToReload"/>

0 commit comments

Comments
 (0)