Skip to content

Commit 31a6a1e

Browse files
committed
ACQE-6908 : Verify that Apply gift cards or promo codes widget is shown on order review page
Removed gift card elements and steps
1 parent eb34cdb commit 31a6a1e

File tree

2 files changed

+1
-24
lines changed

2 files changed

+1
-24
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@
1313
<element name="applyDiscountCodeHeader" type="select" selector="//strong[text()='Apply Discount Code']"/>
1414
<element name="discountCodeField" type="input" selector=".control #coupon_code"/>
1515
<element name="applyDiscount" type="button" selector="//button//span[text()='Apply Discount']"/>
16-
<element name="gitCardHeader" type="select" selector="//strong[@id='block-giftcard-heading']"/>
17-
<element name="giftCardField" type="input" selector="//input[@id='giftcard-code']"/>
18-
<element name="addGiftCard" type="button" selector="//span[text()='Add Gift Card']"/>
19-
<element name="giftCardStatus" type="select" selector="//span[text()='Check Gift Card status and balance']"/>
2016
<element name="grandTotal" type="text" selector="//td[@data-th='Grand Total']//strong"/>
2117
</section>
2218
</sections>

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

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@
3030
<argument name="couponCode" value="CatPriceRule.coupon_code"/>
3131
</actionGroup>
3232
<createData entity="GiftCardCodePool" stepKey="createCodePool"/>
33-
<actionGroup ref="AddGiftCardAccountActionGroup" stepKey="addGiftCardAccount">
34-
<argument name="website" value="Main Website" />
35-
<argument name="balanceAmount" value="50" />
36-
</actionGroup>
37-
<grabTextFrom selector="{{AdminGiftCardAccountGridSection.giftCardCode}}" stepKey="giftCardAccountCode"/>
3833
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
3934
<argument name="indices" value=""/>
4035
</actionGroup>
@@ -44,10 +39,6 @@
4439
</before>
4540
<after>
4641
<deleteData createDataKey="createProduct" stepKey="deleteProduct"/>
47-
<!-- Delete gift card account -->
48-
<actionGroup ref="DeleteGiftCardAccountActionGroup" stepKey="deleteGiftCardAccount">
49-
<argument name="giftCardAccountCode" value="$giftCardAccountCode"/>
50-
</actionGroup>
5142
<actionGroup ref="DeleteCartPriceRuleByName" stepKey="deleteCartPriceRule">
5243
<argument name="ruleName" value="{{CatPriceRule.name}}"/>
5344
</actionGroup>
@@ -78,17 +69,7 @@
7869
<click selector="{{StorefrontPayPalOrderReviewSection.applyDiscount}}" stepKey="clickApplyDiscount"/>
7970
<waitForPageLoad stepKey="waitForCouponToBeApplied"/>
8071
<waitForElement selector="{{StorefrontPayPalOrderReviewSection.grandTotal('$95.00')}}" stepKey="assertTotalAfterDiscountApplied"/>
81-
82-
83-
<waitForElementClickable selector="{{StorefrontPayPalOrderReviewSection.gitCardHeader}}" stepKey="waitForGiftCardHeaderToBeClickable"/>
84-
<click selector="{{StorefrontPayPalOrderReviewSection.gitCardHeader}}" stepKey="clickGiftCardHeader"/>
85-
<waitForElementVisible selector="{{StorefrontPayPalOrderReviewSection.giftCardField}}" stepKey="waitForGiftCodeFieldToBeVisible"/>
86-
<fillField selector="{{StorefrontPayPalOrderReviewSection.giftCardField}}" userInput="$giftCardAccountCode" stepKey="fillGiftCodeField"/>
87-
<waitForElementClickable selector="{{StorefrontPayPalOrderReviewSection.addGiftCard}}" stepKey="waitForAddGiftCardToBeClickable"/>
88-
<click selector="{{StorefrontPayPalOrderReviewSection.addGiftCard}}" stepKey="clickAddGiftCard"/>
89-
<waitForPageLoad stepKey="waitForCouponToBeApplied2"/>
90-
<waitForElement selector="{{StorefrontPayPalOrderReviewSection.grandTotal('$55.00')}}" stepKey="assertTotalAfterGiftCardApplied"/>
9172
<!--SubmitOrder-->
92-
<actionGroup ref="StorefrontPlaceOrderOnOrderReviewPageActionGroup" stepKey="clickPlaceOrderBtn"/>
73+
<actionGroup ref="StorefrontPlaceOrderOnOrderReviewPageActionGroup" stepKey="clickPlaceOrderBtn" after="assertTotalAfterGiftCardApplied"/>
9374
</test>
9475
</tests>

0 commit comments

Comments
 (0)