Skip to content

Commit f194e48

Browse files
committed
MC-13212: Apply Promo Code during Checkout for physical product
1 parent e5b761e commit f194e48

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
<dontSeeElement selector="{{DiscountSection.ApplyCodeBtn}}" stepKey="dontSeeApplyButton"/>
6464

6565
<!-- Cancel coupon button is appeared -->
66-
<seeElement selector="{{DiscountSection.cancelCouponBtn}}" stepKey="seeCancelCouponButton"/>
66+
<seeElement selector="{{DiscountSection.CancelCouponBtn}}" stepKey="seeCancelCouponButton"/>
6767

6868
<!-- Order summary contains information about applied code -->
6969
<seeElement selector="{{CheckoutPaymentSection.discount}}" stepKey="seeDiscountCouponInSummaryBlock"/>

app/code/Magento/SalesRule/Test/Mftf/Section/DiscountSection.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<element name="DiscountInput" type="input" selector="#discount-code"/>
1414
<element name="ApplyCodeBtn" type="button" selector="//span[text()='Apply Discount']"/>
1515
<element name="CancelCoupon" type="button" selector="//button[@value='Cancel Coupon']"/>
16-
<element name="DiscountVerificationMsg" type="button" selector="//div[contains(@class, 'discount-code _active')]//div[@data-role='checkout-messages']/div/div"/>
17-
<element name="cancelCouponBtn" type="button" selector="#discount-form .action-cancel"/>
16+
<element name="DiscountVerificationMsg" type="button" selector=".message-success div"/>
17+
<element name="CancelCouponBtn" type="button" selector="#discount-form .action-cancel"/>
1818
</section>
1919
</sections>

0 commit comments

Comments
 (0)