Skip to content

Commit 7974292

Browse files
committed
ACQE-5749:Place an order using paypal express checkout as payment method
1 parent f8f8bab commit 7974292

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

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

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,11 @@
5252
<argument name="customer" value="$$createCustomer$$" />
5353
<argument name="address" value="US_Address_TX"/>
5454
</actionGroup>
55-
<actionGroup ref="CheckoutSelectFlatRateShippingMethodActionGroup" stepKey="selectFlatRateShipping" />
56-
<actionGroup ref="StorefrontCheckoutClickNextOnShippingStepActionGroup" stepKey="clickNext"/>
55+
<!-- Select shipping -->
56+
<actionGroup ref="StorefrontSetShippingMethodActionGroup" stepKey="selectShippingMethodAsFlatRate">
57+
<argument name="shippingMethodName" value="Flat Rate"/>
58+
</actionGroup>
59+
<actionGroup ref="StorefrontCheckoutClickNextOnShippingStepActionGroup" stepKey="goToCheckoutPaymentPage"/>
5760
<!-- Click on PayPal payment radio button -->
5861
<waitForElementClickable selector="{{CheckoutPaymentSection.PayPalPaymentRadio}}" stepKey="waitForPayPalRadioButton"/>
5962
<click selector="{{CheckoutPaymentSection.PayPalPaymentRadio}}" stepKey="selectPaypalPayment"/>
@@ -67,11 +70,7 @@
6770
</actionGroup>
6871
<waitForElementVisible selector="{{AdminOrderPaymentInformationSection.paymentInformationField('Last Transaction ID')}}" stepKey="waitForTransactionIDFieldToBeAppeared"/>
6972
<grabTextFrom selector="{{AdminOrderPaymentInformationSection.paymentInformationField('Last Transaction ID')}}" stepKey="grabATransactionID"/>
70-
<actionGroup ref="AdminAssertTotalsOnOrderViewPageActionGroup" stepKey="checkSubtotal">
71-
<argument name="subtotal" value="$10.00"/>
72-
<argument name="shippingAndHandling" value="$5.00"/>
73-
<argument name="grandTotal" value="15.00"/>
74-
</actionGroup>
73+
<waitForText selector="{{AdminOrderTotalSection.grandTotal}}" userInput="$15.00" stepKey="checkGrandTotal"/>
7574
<actionGroup ref="AdminOpenOrderCommentsHistoryActionGroup" stepKey="clickOnCommentsHistory"/>
7675
<waitForText selector="{{AdminOrderCommentsTabSection.orderComment}}" userInput="Authorized amount of $15.00. Transaction ID: &quot;{$grabATransactionID}&quot;" stepKey="seeOrderHistoryNotes"/>
7776
</test>

0 commit comments

Comments
 (0)