Skip to content

Commit 8be3593

Browse files
committed
Merge branch 'ACQE-6954' into ACQE-7021-functional-tests-mainline-deployment
2 parents 580176f + 77e8abe commit 8be3593

File tree

1 file changed

+87
-0
lines changed

1 file changed

+87
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
10+
<test name="AdminCreatePartialCaptureForOrderPaidWithPayPalPayflowProTest" extends="StorefrontRegisteredCustomerCheckoutWithPayPalPayflowProCreditCardWithPaymentActionSaleAndVirtualQuoteAndVerifyTheOrderInBackendTest">
11+
<annotations>
12+
<features value="PayPal"/>
13+
<stories value="Paypal payflow Pro"/>
14+
<title value="Create partial capture for order paid with PayPal Payflow Pro"/>
15+
<description value="Admin creates partial capture for order paid with PayPal Payflow Pro and assert the transaction in transaction tab"/>
16+
<severity value="MAJOR"/>
17+
<testCaseId value="AC-5191"/>
18+
<group value="paypalPayflowPro"/>
19+
<group value="3rd_party_integration"/>
20+
<group value="pr_exclude"/>
21+
</annotations>
22+
<before>
23+
<remove keyForRemoval="createVirtualProduct"/>
24+
<remove keyForRemoval="setPaymentActionSale"/>
25+
<remove keyForRemoval="setPaymentActionSale"/>
26+
<!-- Create product -->
27+
<createData entity="SimpleProduct" stepKey="createSimpleProduct" before="loginAsAdmin"/>
28+
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex" after="loginAsAdmin">
29+
<argument name="indices" value=""/>
30+
</actionGroup>
31+
<actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanCache" after="reindex">
32+
<argument name="tags" value="config full_page"/>
33+
</actionGroup>
34+
</before>
35+
<after>
36+
<remove keyForRemoval="deleteVirtualProduct"/>
37+
<remove keyForRemoval="setPaymentActionAuthorization"/>
38+
<deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/>
39+
<deleteData createDataKey="createSimpleProduct" stepKey="deleteSimpleProduct"/>
40+
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
41+
</after>
42+
<remove keyForRemoval="goToProductOnStorefront"/>
43+
<remove keyForRemoval="addToCartFromStorefrontProductPage"/>
44+
<remove keyForRemoval="assertGrandTotal"/>
45+
<remove keyForRemoval="seeOrderHistoryNotes"/>
46+
<remove keyForRemoval="openTransactionTabOrdersPage"/>
47+
<remove keyForRemoval="getVoidTransaction"/>
48+
<actionGroup ref="StorefrontOpenProductEntityPageActionGroup" stepKey="goToProductOnStorefront">
49+
<argument name="product" value="$$createSimpleProduct$$"/>
50+
</actionGroup>
51+
<fillField userInput="2" selector="{{StorefrontProductPageSection.qtyInput}}" stepKey="fillProductQty" after="goToProductOnStorefront"/>
52+
<!-- Add product to cart -->
53+
<actionGroup ref="AddToCartFromStorefrontProductPageActionGroup" stepKey="addProductToCartFromStorefrontProductPage" after="fillProductQty">
54+
<argument name="productName" value="$createSimpleProduct.name$"/>
55+
</actionGroup>
56+
<actionGroup ref="StorefrontCheckoutClickNextOnShippingStepActionGroup" stepKey="goToCheckoutPaymentPage" after="clickProceedToCheckout"/>
57+
<!--Click on invoice button and update qty and then submit invoice-->
58+
<actionGroup ref="AdminClickInvoiceButtonOrderViewActionGroup" stepKey="clickInvoiceButton" after="openOrder"/>
59+
<actionGroup ref="AdminFillQtyToInvoiceOnCreateInvoicePageActionGroup" stepKey="fillInvoiceQuantity" after="clickInvoiceButton">
60+
<argument name="qty" value="1"/>
61+
</actionGroup>
62+
<actionGroup ref="AdminClickUpdateQtysButtonOnCreateInvoicePageActionGroup" stepKey="clickUpdateQtyAfterUpdatingInvoiceBtn" after="fillInvoiceQuantity"/>
63+
<waitForPageLoad stepKey="waitPageToBeLoaded" after="clickUpdateQtyAfterUpdatingInvoiceBtn"/>
64+
<seeOptionIsSelected userInput="Capture Online" selector="{{AdminInvoiceTotalSection.amount}}" stepKey="seeOptionType" after="waitPageToBeLoaded"/>
65+
<actionGroup ref="AdminInvoiceClickSubmitActionGroup" stepKey="clickSubmitInvoice" after="seeOptionType"/>
66+
<waitForPageLoad time="60" stepKey="waitForPageLoadSubmitInvoice" after="clickSubmitInvoice"/>
67+
<!--Check order status and grab transaction id-->
68+
<actionGroup ref="AdminOrderViewCheckStatusActionGroup" stepKey="checkOrderStatus" before="waitForTransactionIDFieldToBeAppeared">
69+
<argument name="status" value="Processing"/>
70+
</actionGroup>
71+
<waitForText selector="{{AdminOrderCommentsTabSection.orderCommentsWithType('Captured')}}" userInput="Captured amount of $133.00 online. Transaction ID: &quot;{$grabTransactionID}&quot;" stepKey="seeOrderHistoryNotesAlongWithAmount" after="clickOnCommentsHistory"/>
72+
<!-- Assert Authorization Transaction-->
73+
<actionGroup ref="AdminAssertTransactionTypeInTransactionTabActionGroup" stepKey="assertAuthorizationTransactionType" after="clickOnBackButton">
74+
<argument name="transactionType" value="authorization"/>
75+
</actionGroup>
76+
<waitForText selector="{{AdminTransactionsGridSection.transactionData('Is Closed')}}" userInput="No" stepKey="seeIfClosedHeaderIsSetAsNoForAuthorization" after="assertAuthorizationTransactionType"/>
77+
<waitForElementClickable selector="{{AdminProductFormActionSection.backButton}}" stepKey="waitForBackButtonToBeClickedFromAuthorization" after="seeIfClosedHeaderIsSetAsNoForAuthorization"/>
78+
<click selector="{{AdminProductFormActionSection.backButton}}" stepKey="clickBackButtonFromAuthorization" after="waitForBackButtonToBeClickedFromAuthorization"/>
79+
<!-- Assert Capture Transaction-->
80+
<actionGroup ref="AdminAssertTransactionTypeInTransactionTabActionGroup" after="clickBackButtonFromAuthorization" stepKey="assertCaptureTransactionType">
81+
<argument name="transactionType" value="capture"/>
82+
</actionGroup>
83+
<waitForText selector="{{AdminTransactionsGridSection.transactionData('Is Closed')}}" userInput="No" stepKey="seeIfClosedHeaderIsSetAsNoForCapture" after="assertCaptureTransactionType"/>
84+
<waitForElementClickable selector="{{AdminProductFormActionSection.backButton}}" stepKey="waitForBackButtonToBeClickedFromCapture" after="seeIfClosedHeaderIsSetAsNoForCapture"/>
85+
<click selector="{{AdminProductFormActionSection.backButton}}" stepKey="clickBackButtonFromCapture" after="waitForBackButtonToBeClickedFromCapture"/>
86+
</test>
87+
</tests>

0 commit comments

Comments
 (0)