Skip to content

Commit 4be6a5c

Browse files
ACQE-5709 : Updated with 3 more missed assertions
1 parent bdcf9bd commit 4be6a5c

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

app/code/Magento/Paypal/Test/Mftf/Section/PayPalExpressCheckoutConfigSection/PayPalPaymentSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,6 @@
2525
<element name="shippingMethod" type="text" selector="#shippingMethodCharge > span.selectedShippingMethod"/>
2626
<element name="paypalCart" type="text" selector="#transactionCart"/>
2727
<element name="productNamePosition" type="text" selector=".itemName"/>
28+
<element name="orderTotalOnPaypalCheckout" type="text" selector="//div[@id='cart']//span/text()"/>
2829
</section>
2930
</sections>

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

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,7 @@
4141
<fillField selector="{{AdminCartPriceRulesFormSection.discountAmount}}" userInput="20" stepKey="fillDiscountAmount"/>
4242
<actionGroup ref="AdminCartPriceRuleSaveActionGroup" stepKey="saveCartPriceRule"/>
4343
<!-- end of create cart price rule -->
44-
<!-- Configure Paypal Express Checkout -->
45-
<actionGroup ref="AdminPayPalExpressCheckoutEnableActionGroup" stepKey="ConfigurePayPalExpress">
46-
<argument name="credentials" value="SamplePaypalExpressConfig2"/>
47-
</actionGroup>
44+
4845
</before>
4946
<after>
5047
<magentoCLI command="config:set payment/paypal_express/active 0" stepKey="disablePayPalExpress"/>
@@ -65,11 +62,16 @@
6562
<actionGroup ref="CheckoutSelectFlatRateShippingMethodActionGroup" stepKey="selectFlatRateShipping" />
6663
<actionGroup ref="StorefrontCheckoutClickNextOnShippingStepActionGroup" stepKey="clickNext"/>
6764

65+
<actionGroup ref="AssertStorefrontCheckoutPaymentSummaryTotalActionGroup" stepKey="assertSummaryTotalBeforeCoupon">
66+
<argument name="orderTotal" value="$128.00"/>
67+
</actionGroup>
6868
<!-- Apply Discount Coupon to the Order -->
6969
<actionGroup ref="StorefrontApplyDiscountCodeActionGroup" stepKey="applyDiscountCoupon">
7070
<argument name="discountCode" value="{{_defaultCoupon.code}}"/>
7171
</actionGroup>
72-
72+
<actionGroup ref="AssertStorefrontCheckoutPaymentSummaryTotalActionGroup" stepKey="assertSummaryTotalAfterCoupon">
73+
<argument name="orderTotal" value="$103.40"/>
74+
</actionGroup>
7375
<!-- Click on PayPal payment radio button -->
7476
<waitForElementClickable selector="{{CheckoutPaymentSection.PayPalPaymentRadio}}" stepKey="waitForPayPalRadioButton"/>
7577
<click selector="{{CheckoutPaymentSection.PayPalPaymentRadio}}" stepKey="selectPaypalPayment"/>
@@ -81,10 +83,11 @@
8183
<actionGroup ref="StorefrontLoginToPayPalPaymentAccountTwoStepActionGroup" stepKey="loginToPayPal"/>
8284
<!-- Transfer Cart Line and Shipping Method assertion -->
8385
<actionGroup ref="PayPalAssertTransferLineAndShippingMethodNotExistActionGroup" stepKey="assertPayPalPage"/>
86+
<waitForText selector="{{PayPalPaymentSection.orderTotalOnPaypalCheckout}}" userInput="$128.00" stepKey="verifyOrderTotalOnPaypalPage"/>
8487

8588
<!-- Click PayPal button and go back to Magento site -->
8689
<actionGroup ref="StorefrontPaypalSwitchBackToMagentoFromCheckoutPageActionGroup" stepKey="confirmPaymentAndGoBackToMagento"/>
8790
<!-- I see order successful Page -->
88-
<actionGroup ref="AssertStorefrontCheckoutSuccessActionGroup" stepKey="assertOrderSuccess"/>
91+
<actionGroup ref="VerifyCreatedOrderInformationActionGroup" stepKey="assertOrderSuccess"/>
8992
</test>
9093
</tests>

0 commit comments

Comments
 (0)