Skip to content

Commit 7d844f1

Browse files
committed
ACQE-5749:Place an order using paypal express checkout as payment method
1 parent 6eb21f4 commit 7d844f1

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

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

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,17 @@
77
-->
88
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
99
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
10-
<test name="AdminPayPalExpressCheckoutTest">
10+
<test name="AdminCancelPaypalExpressCheckoutTest">
1111
<annotations>
1212
<features value="PayPal"/>
13-
<stories value="Paypal express checkout configuration"/>
13+
<stories value="Paypal express checkout configuration with credentials"/>
1414
<title value="Paypal Express Checkout configuration with valid credentials"/>
15-
<description value="Place an order using paypal express checkout as payment method"/>
15+
<description value="Cancel an order with paypal express checkout as payment method"/>
1616
<severity value="CRITICAL"/>
17-
<testCaseId value="AC-6149"/>
17+
<testCaseId value="AC-6116"/>
1818
</annotations>
1919
<before>
2020
<!-- Simple product is created and assigned to category -->
21-
<createData entity="_defaultCategory" stepKey="createCategory"/>
2221
<createData entity="SimpleProduct" stepKey="createProduct">
2322
<requiredEntity createDataKey="createCategory"/>
2423
<field key="price">10.00</field>
@@ -32,14 +31,12 @@
3231
</actionGroup>
3332
</before>
3433
<after>
35-
<actionGroup ref="AdminOrdersPageOpenActionGroup" stepKey="navigateToSalesOrderPage"/>
3634
<magentoCLI command="config:set payment/paypal_express/active 0" stepKey="disablePayPalExpress"/>
3735
<deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/>
3836
<deleteData createDataKey="createProduct" stepKey="deleteProduct"/>
39-
<deleteData createDataKey="createCategory" stepKey="deleteCategory"/>
4037
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
4138
</after>
42-
<!-- Login to StoreFront -->
39+
<!-- Go to Storefront -->
4340
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToStoreFront"/>
4441
<!-- Add product to cart -->
4542
<actionGroup ref="AddSimpleProductToCartActionGroup" stepKey="addProductToCart">
@@ -64,16 +61,17 @@
6461
<!-- Login to Paypal in-context and verify order total on paypal page-->
6562
<actionGroup ref="StorefrontLoginToPayPalPaymentAccountTwoStepActionGroup" stepKey="loginToPayPal"/>
6663
<actionGroup ref="StorefrontPaypalSwitchBackToMagentoFromCheckoutPageActionGroup" stepKey="confirmPaymentAndGoBackToMagento"/>
64+
<!-- I see order successful Page -->
6765
<waitForElementVisible selector="{{CheckoutSuccessMainSection.orderNumber}}" stepKey="waitForOrderNumberToBeGrabbed"/>
6866
<grabTextFrom selector="{{CheckoutSuccessMainSection.orderNumber}}" stepKey="grabOrderNumber"/>
6967
<waitForText selector="{{CheckoutSuccessMainSection.success}}" userInput="We'll email you an order confirmation with details and tracking info." stepKey="seeSuccessMessage"/>
7068
<actionGroup ref="OpenOrderByIdActionGroup" stepKey="openOrder">
7169
<argument name="orderId" value="{$grabOrderNumber}"/>
7270
</actionGroup>
7371
<waitForElementVisible selector="{{AdminOrderPaymentInformationSection.paymentInformationField('Last Transaction ID')}}" stepKey="waitForTransactionIDFieldToBeAppeared"/>
74-
<grabTextFrom selector="{{AdminOrderPaymentInformationSection.paymentInformationField('Last Transaction ID')}}" stepKey="grabATransactionID"/>
72+
<grabTextFrom selector="{{AdminOrderPaymentInformationSection.paymentInformationField('Last Transaction ID')}}" stepKey="grabTransactionID"/>
7573
<waitForText selector="{{AdminOrderTotalSection.grandTotal}}" userInput="$15.00" stepKey="checkGrandTotal"/>
7674
<actionGroup ref="AdminOpenOrderCommentsHistoryActionGroup" stepKey="clickOnCommentsHistory"/>
77-
<waitForText selector="{{AdminOrderCommentsTabSection.orderComment}}" userInput="Authorized amount of $15.00. Transaction ID: &quot;{$grabATransactionID}&quot;" stepKey="seeOrderHistoryNotes"/>
75+
<waitForText selector="{{AdminOrderCommentsTabSection.orderComment}}" userInput="Authorized amount of $15.00. Transaction ID: &quot;{$grabTransactionID}&quot;" stepKey="seeOrderHistoryNotes"/>
7876
</test>
7977
</tests>

0 commit comments

Comments
 (0)