|
41 | 41 | <fillField selector="{{AdminCartPriceRulesFormSection.discountAmount}}" userInput="20" stepKey="fillDiscountAmount"/>
|
42 | 42 | <actionGroup ref="AdminCartPriceRuleSaveActionGroup" stepKey="saveCartPriceRule"/>
|
43 | 43 | <!-- 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 | + |
48 | 45 | </before>
|
49 | 46 | <after>
|
50 | 47 | <magentoCLI command="config:set payment/paypal_express/active 0" stepKey="disablePayPalExpress"/>
|
|
65 | 62 | <actionGroup ref="CheckoutSelectFlatRateShippingMethodActionGroup" stepKey="selectFlatRateShipping" />
|
66 | 63 | <actionGroup ref="StorefrontCheckoutClickNextOnShippingStepActionGroup" stepKey="clickNext"/>
|
67 | 64 |
|
| 65 | + <actionGroup ref="AssertStorefrontCheckoutPaymentSummaryTotalActionGroup" stepKey="assertSummaryTotalBeforeCoupon"> |
| 66 | + <argument name="orderTotal" value="$128.00"/> |
| 67 | + </actionGroup> |
68 | 68 | <!-- Apply Discount Coupon to the Order -->
|
69 | 69 | <actionGroup ref="StorefrontApplyDiscountCodeActionGroup" stepKey="applyDiscountCoupon">
|
70 | 70 | <argument name="discountCode" value="{{_defaultCoupon.code}}"/>
|
71 | 71 | </actionGroup>
|
72 |
| - |
| 72 | + <actionGroup ref="AssertStorefrontCheckoutPaymentSummaryTotalActionGroup" stepKey="assertSummaryTotalAfterCoupon"> |
| 73 | + <argument name="orderTotal" value="$103.40"/> |
| 74 | + </actionGroup> |
73 | 75 | <!-- Click on PayPal payment radio button -->
|
74 | 76 | <waitForElementClickable selector="{{CheckoutPaymentSection.PayPalPaymentRadio}}" stepKey="waitForPayPalRadioButton"/>
|
75 | 77 | <click selector="{{CheckoutPaymentSection.PayPalPaymentRadio}}" stepKey="selectPaypalPayment"/>
|
|
81 | 83 | <actionGroup ref="StorefrontLoginToPayPalPaymentAccountTwoStepActionGroup" stepKey="loginToPayPal"/>
|
82 | 84 | <!-- Transfer Cart Line and Shipping Method assertion -->
|
83 | 85 | <actionGroup ref="PayPalAssertTransferLineAndShippingMethodNotExistActionGroup" stepKey="assertPayPalPage"/>
|
| 86 | + <waitForText selector="{{PayPalPaymentSection.orderTotalOnPaypalCheckout}}" userInput="$128.00" stepKey="verifyOrderTotalOnPaypalPage"/> |
84 | 87 |
|
85 | 88 | <!-- Click PayPal button and go back to Magento site -->
|
86 | 89 | <actionGroup ref="StorefrontPaypalSwitchBackToMagentoFromCheckoutPageActionGroup" stepKey="confirmPaymentAndGoBackToMagento"/>
|
87 | 90 | <!-- I see order successful Page -->
|
88 |
| - <actionGroup ref="AssertStorefrontCheckoutSuccessActionGroup" stepKey="assertOrderSuccess"/> |
| 91 | + <actionGroup ref="VerifyCreatedOrderInformationActionGroup" stepKey="assertOrderSuccess"/> |
89 | 92 | </test>
|
90 | 93 | </tests>
|
0 commit comments