Skip to content

Commit 942497c

Browse files
committed
ACQE-6908 : Verify that Apply gift cards or promo codes widget is shown on order review page
Modified file
1 parent 7f67fa7 commit 942497c

File tree

2 files changed

+9
-15
lines changed

2 files changed

+9
-15
lines changed

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

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,6 @@
4242
<!--Logout from admin site-->
4343
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
4444
</after>
45-
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
46-
<argument name="indices" value=""/>
47-
</actionGroup>
48-
<actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanCache">
49-
<argument name="tags" value="config full_page"/>
50-
</actionGroup>
5145
<actionGroup ref="StorefrontAddSimpleProductWithQtyActionGroup" stepKey="addSimpleProductToCart">
5246
<argument name="product" value="$$createProduct$$"/>
5347
<argument name="quantity" value="1"/>
@@ -59,15 +53,6 @@
5953
<waitForElementClickable selector="{{CheckoutPaymentSection.reviewOrder}}" stepKey="waitForReviewOrderButtonToBeClickable"/>
6054
<click selector="{{CheckoutPaymentSection.reviewOrder}}" stepKey="clickReviewOrderButton"/>
6155
<waitForPageLoad stepKey="waitForPageLoad"/>
62-
<actionGroup ref="StorefrontSelectShippingMethodOnOrderReviewPageActionGroup" stepKey="selectShippingMethod"/>
63-
<waitForElementClickable selector="{{StorefrontPayPalOrderReviewSection.applyDiscountCodeHeader}}" stepKey="waitForDiscountHeaderToBeClickable"/>
64-
<click selector="{{StorefrontPayPalOrderReviewSection.applyDiscountCodeHeader}}" stepKey="clickDiscountHeader"/>
65-
<waitForElementVisible selector="{{StorefrontPayPalOrderReviewSection.discountCodeField}}" stepKey="waitForDiscountCodeFieldToBeVisible"/>
66-
<fillField selector="{{StorefrontPayPalOrderReviewSection.discountCodeField}}" userInput="{{CatPriceRule.coupon_code}}" stepKey="fillDiscountCodeField"/>
67-
<waitForElementClickable selector="{{StorefrontPayPalOrderReviewSection.applyDiscount}}" stepKey="waitForApplyDiscountToBeClickable"/>
68-
<click selector="{{StorefrontPayPalOrderReviewSection.applyDiscount}}" stepKey="clickApplyDiscount"/>
69-
<waitForPageLoad stepKey="waitForCouponToBeApplied"/>
70-
<waitForElement selector="{{StorefrontPayPalOrderReviewSection.grandTotal('$95.00')}}" stepKey="assertTotalAfterDiscountApplied"/>
7156
<!--Place an order-->
7257
<actionGroup ref="ClickPlaceOrderActionGroup" after="assertTotalAfterGiftCardApplied" stepKey="clickOnPlaceOrder"/>
7358
</test>

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,14 @@
2727
</after>
2828
<!--Login to Paypal in-context-->
2929
<actionGroup ref="StorefrontLoginToPayPalPaymentAccountTwoStepActionGroup" stepKey="LoginToPayPal" after="clickPayPalBtn"/>
30+
<actionGroup ref="StorefrontSelectShippingMethodOnOrderReviewPageActionGroup" stepKey="selectShippingMethod" after="waitForPageLoad"/>
31+
<waitForElementClickable selector="{{StorefrontPayPalOrderReviewSection.applyDiscountCodeHeader}}" stepKey="waitForDiscountHeaderToBeClickable" after="selectShippingMethod"/>
32+
<click selector="{{StorefrontPayPalOrderReviewSection.applyDiscountCodeHeader}}" stepKey="clickDiscountHeader" after="waitForDiscountHeaderToBeClickable"/>
33+
<waitForElementVisible selector="{{StorefrontPayPalOrderReviewSection.discountCodeField}}" stepKey="waitForDiscountCodeFieldToBeVisible" after="clickDiscountHeader"/>
34+
<fillField selector="{{StorefrontPayPalOrderReviewSection.discountCodeField}}" userInput="{{CatPriceRule.coupon_code}}" stepKey="fillDiscountCodeField" after="waitForDiscountCodeFieldToBeVisible"/>
35+
<waitForElementClickable selector="{{StorefrontPayPalOrderReviewSection.applyDiscount}}" stepKey="waitForApplyDiscountToBeClickable" after="fillDiscountCodeField"/>
36+
<click selector="{{StorefrontPayPalOrderReviewSection.applyDiscount}}" stepKey="clickApplyDiscount" after="waitForApplyDiscountToBeClickable"/>
37+
<waitForPageLoad stepKey="waitForCouponToBeApplied" after="clickApplyDiscount"/>
38+
<waitForElement selector="{{StorefrontPayPalOrderReviewSection.grandTotal('$95.00')}}" stepKey="assertTotalAfterDiscountApplied" after="waitForCouponToBeApplied"/>
3039
</test>
3140
</tests>

0 commit comments

Comments
 (0)