Skip to content

Commit 5c0c917

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

4 files changed

+17
-19
lines changed

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

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
33
/**
4-
* Copyright © Magento, Inc. All rights reserved.
5-
* See COPYING.txt for license details.
4+
* Copyright 2024 Adobe
5+
* All Rights Reserved.
66
*/
77
-->
88

@@ -22,21 +22,21 @@
2222
<createData entity="simpleProductWithoutCategory" stepKey="createProduct">
2323
<field key="price">100.00</field>
2424
</createData>
25-
<!--Create cart price rule and coupon-->
26-
<createData entity="ActiveSalesRuleForNotLoggedIn" stepKey="createCartPriceRule"/>
27-
<createData entity="SimpleSalesRuleCoupon" stepKey="createCouponForCartPriceRule">
28-
<requiredEntity createDataKey="createCartPriceRule"/>
29-
</createData>
3025
<!--Create a customer-->
3126
<createData entity="Simple_US_Customer" stepKey="createCustomer"/>
3227
<!--Login to admin site-->
3328
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
29+
<!--Create cart price rule and coupon-->
30+
<actionGroup ref="AdminCreateCartPriceRuleWithCouponCodeActionGroup" stepKey="createCartPriceRule">
31+
<argument name="ruleName" value="CatPriceRule"/>
32+
<argument name="couponCode" value="CatPriceRule.coupon_code"/>
33+
</actionGroup>
3434
</before>
3535
<after>
3636
<!--Delete created product-->
37-
<deleteData createDataKey="createSimpleProduct1" stepKey="deleteSimpleProduct"/>
37+
<deleteData createDataKey="createProduct" stepKey="deleteSimpleProduct"/>
3838
<!--Delete created cart price rule-->
39-
<deleteData createDataKey="createCartPriceRule" stepKey="deleteCartPriceRule"/>
39+
<actionGroup ref="AdminCartPriceRuleDeleteAllActionGroup" stepKey="deleteAllCartPriceRules"/>
4040
<!--Delete created customer-->
4141
<deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/>
4242
<!--Logout from admin site-->
@@ -53,7 +53,5 @@
5353
<waitForElementClickable selector="{{CheckoutPaymentSection.reviewOrder}}" stepKey="waitForReviewOrderButtonToBeClickable"/>
5454
<click selector="{{CheckoutPaymentSection.reviewOrder}}" stepKey="clickReviewOrderButton"/>
5555
<waitForPageLoad stepKey="waitForPageLoad"/>
56-
<!--Place an order-->
57-
<actionGroup ref="ClickPlaceOrderActionGroup" after="assertTotalAfterGiftCardApplied" stepKey="clickOnPlaceOrder"/>
5856
</test>
5957
</tests>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
33
/**
4-
* Copyright © Magento, Inc. All rights reserved.
5-
* See COPYING.txt for license details.
4+
* Copyright 2024 Adobe
5+
* All Rights Reserved.
66
*/
77
-->
88

app/code/Magento/Paypal/Test/Mftf/Section/StorefrontPayPalOrderReviewSection.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
33
/**
4-
* Copyright © Magento, Inc. All rights reserved.
5-
* See COPYING.txt for license details.
4+
* Copyright 2024 Adobe
5+
* All Rights Reserved.
66
*/
77
-->
88
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
33
/**
4-
* Copyright © Magento, Inc. All rights reserved.
5-
* See COPYING.txt for license details.
4+
* Copyright 2024 Adobe
5+
* All Rights Reserved.
66
*/
77
-->
88

@@ -18,12 +18,12 @@
1818
<testCaseId value="AC-4378"/>
1919
</annotations>
2020
<before>
21-
<actionGroup ref="AdminEnablePayPalPayFlowLinkActionGroup" stepKey="ConfigPayPalPayFlowLink" after="createGiftCardAccount">
21+
<actionGroup ref="AdminEnablePayPalPayFlowLinkActionGroup" stepKey="ConfigPayPalPayFlowLink" after="createCartPriceRule">
2222
<argument name="credentials" value="SamplePaypalPaymentsFlowLinkConfig"/>
2323
</actionGroup>
2424
</before>
2525
<after>
26-
<actionGroup ref="AdminDisablePayPalPayFlowLinkActionGroup" stepKey="disablePayPalPayFlow" after="deleteGiftCardAccount"/>
26+
<actionGroup ref="AdminDisablePayPalPayFlowLinkActionGroup" stepKey="disablePayPalPayFlow" after="deleteCustomer"/>
2727
</after>
2828
<!--Login to Paypal in-context-->
2929
<actionGroup ref="StorefrontLoginToPayPalPaymentAccountTwoStepActionGroup" stepKey="LoginToPayPal" after="clickPayPalBtn"/>

0 commit comments

Comments
 (0)