Skip to content

Commit 0cb05c5

Browse files
committed
ACQE-8469:Checkout Free Shipping Recalculation after Coupon Code Applied
- Added appropirate stepkeys and comments in the test case
1 parent 2fdb920 commit 0cb05c5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<actionGroup ref="LoginToStorefrontActionGroup" stepKey="loginToStoreFront">
4141
<argument name="Customer" value="$createCustomer$"/>
4242
</actionGroup>
43-
<!--Add product to cart-->
43+
<!--Navigate to product page-->
4444
<actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="openProductPage">
4545
<argument name="productUrl" value="$simpleProduct.custom_attributes[url_key]$"/>
4646
</actionGroup>
@@ -55,13 +55,13 @@
5555
<actionGroup ref="AdminCartPriceRuleDeleteAllActionGroup" stepKey="deleteAllCartPriceRules"/>
5656
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
5757
</after>
58-
<!--Step 1:Apply cart price discount-->
58+
<!--Step 1:Add product to cart and apply cart price discount-->
5959
<actionGroup ref="ApplyCartRuleOnStorefrontActionGroup" stepKey="applyCartRule">
6060
<argument name="product" value="$simpleProduct$"/>
6161
<argument name="couponCode" value="{{CatPriceRule.coupon_code}}"/>
6262
</actionGroup>
6363
<!--Step 2:Navigate to checkout page and verify free shipping is not available-->
64-
<actionGroup ref="GoToCheckoutFromMinicartActionGroup" stepKey="goToCheckoutFromMinicart1"/>
64+
<actionGroup ref="GoToCheckoutFromMinicartActionGroup" stepKey="goToCheckoutFromMinicartAfterCouponApplied"/>
6565
<waitForElementNotVisible selector="{{CheckoutShippingMethodsSection.shippingMethodRowByName('Free')}}" stepKey="verifyFreeShippingIsNotAvailable"/>
6666
<!--Step 3:Navigate back to shopping cart and cancel the discount-->
6767
<actionGroup ref="StorefrontCartPageOpenActionGroup" stepKey="goToShoppingCartPage"/>
@@ -70,7 +70,7 @@
7070
<click selector="{{DiscountSection.CancelCoupon}}" stepKey="clickCancelCouponButton"/>
7171
<waitForElementVisible selector="{{CheckoutShippingSection.cancelCouponText('You canceled the coupon code.')}}" stepKey="seeCancellationMessage"/>
7272
<!--Step 4:Proceed to checkout-->
73-
<actionGroup ref="GoToCheckoutFromMinicartActionGroup" stepKey="goToCheckoutFromMinicart2"/>
73+
<actionGroup ref="GoToCheckoutFromMinicartActionGroup" stepKey="goToCheckoutFromMinicartAfterCouponCancelled"/>
7474
<waitForPageLoad stepKey="waitForShippingMethods"/>
7575
<!--Step 5:Select free shipping method-->
7676
<actionGroup ref="StorefrontSetShippingMethodActionGroup" stepKey="selectFreeShipping">

0 commit comments

Comments
 (0)