16
16
<severity value =" MAJOR" />
17
17
<testCaseId value =" AC-5461" />
18
18
<group value =" paypalPaymentsPro" />
19
-
19
+ < group value = " 3rd_party_integration " />
20
20
</annotations >
21
21
<before >
22
22
<createData entity =" SimpleProduct" stepKey =" createSimpleProduct" />
23
23
<actionGroup ref =" AdminLoginActionGroup" stepKey =" loginAsAdmin" />
24
- <!-- <actionGroup ref="AdminConfigurePayPalPaymentsProActionGroup" stepKey="ConfigPayPalPaymentsPro">
25
- <argument name="credentials" value="SamplePaypalPaymentsProConfig"/>
26
- </actionGroup>-->
27
- <actionGroup ref =" StorefrontOpenProductEntityPageActionGroup" stepKey =" goToProductOnStorefront2" >
24
+ <!-- Go to product 1 and add it to cart -->
25
+ <actionGroup ref =" StorefrontOpenProductEntityPageActionGroup" stepKey =" goToProductOnStorefront" >
28
26
<argument name =" product" value =" $$createSimpleProduct$$" />
29
27
</actionGroup >
30
- <!-- Add product 1 to cart -->
31
28
<actionGroup ref =" AddToCartFromStorefrontProductPageActionGroup" stepKey =" addToCartFromStorefrontProductPage" >
32
29
<argument name =" productName" value =" $createSimpleProduct.name$" />
33
30
</actionGroup >
43
40
<actionGroup ref =" StorefrontPaypalFillCardDataActionGroup" stepKey =" fillCardDataPaypal" >
44
41
<argument name =" cardData" value =" VisaDefaultCard" />
45
42
</actionGroup >
46
- <actionGroup ref =" ClickPlaceOrderActionGroup" stepKey =" checkoutPlaceOrder " />
47
- <waitForText selector =" {{CheckoutSuccessMainSection.successTitle}}" userInput =" Thank you for your purchase!" stepKey =" waitForLoadSuccessPage " />
43
+ <actionGroup ref =" ClickPlaceOrderActionGroup" stepKey =" placeOrder " />
44
+ <waitForText selector =" {{CheckoutSuccessMainSection.successTitle}}" userInput =" Thank you for your purchase!" stepKey =" waitAndAssertSuccessMessage " />
48
45
</before >
49
46
<after >
50
- <!-- <magentoCLI command="config:set payment/paypal_payment_pro/active 0" stepKey="disablePayPalExpress"/>
51
- <actionGroup ref="CliCacheCleanActionGroup" stepKey="flushingCacheAfterCreatingCouponsAndCartPriceRule">
52
- <argument name="tags" value="config full_page"/>
53
- </actionGroup>
54
- <actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
55
- <argument name="indices" value=""/>
56
- </actionGroup>-->
57
47
<actionGroup ref =" AdminOrdersPageOpenActionGroup" stepKey =" navigateToSalesOrderPage" />
58
48
<actionGroup ref =" AdminClearFiltersActionGroup" stepKey =" clickOnRemoveButtonToUnFiltersIfPresent" />
59
49
<deleteData createDataKey =" createSimpleProduct" stepKey =" deleteSimpleProduct" />
60
50
<actionGroup ref =" AdminLogoutActionGroup" stepKey =" logout" />
61
51
</after >
52
+ <!-- Open order in sales -->
62
53
<grabTextFrom selector =" {{CheckoutSuccessMainSection.orderNumber}}" stepKey =" grabOrderNumber" />
63
54
<actionGroup ref =" OpenOrderByIdActionGroup" stepKey =" openOrder" >
64
55
<argument name =" orderId" value =" {$grabOrderNumber}" />
65
56
</actionGroup >
66
- <actionGroup ref =" AdminVoidPendingOrderActionGroup" stepKey =" voidOrder" />
57
+ <!-- Void created order -->
58
+ <actionGroup ref =" AdminVoidPendingOrderActionGroup" stepKey =" voidPendingOrder" />
67
59
<actionGroup ref =" AdminOrderViewCheckStatusActionGroup" stepKey =" checkOrderStatus" >
68
60
<argument name =" status" value =" Processing" />
69
61
</actionGroup >
62
+ <!-- Grab transaction ids -->
70
63
<waitForElementVisible selector =" {{AdminOrderDetailsInformationSection.paymentInformationField('Last Transaction ID')}}" stepKey =" waitForGrabLastTransactionID" />
71
64
<grabTextFrom selector =" {{AdminOrderDetailsInformationSection.paymentInformationField('Last Transaction ID')}}" stepKey =" grabLastTransactionID" />
72
65
<waitForElementVisible selector =" {{AdminOrderNotesSection.voidAuthorizationNotes('$grabLastTransactionID')}}" stepKey =" WaitForVoidAuthorizationNotesWithID" />
73
- <grabTextFrom selector =" {{AdminOrderNotesSection.voidAuthorizationNotes('$grabLastTransactionID')}}" stepKey =" voidAuthorizationNotesWithID " />
74
- <actionGroup ref =" AdminOpenOrderCommentsHistoryActionGroup" stepKey =" clickOnCommentsHistory " />
66
+ <grabTextFrom selector =" {{AdminOrderNotesSection.voidAuthorizationNotes('$grabLastTransactionID')}}" stepKey =" getVoidAuthorizationNotesWithID " />
67
+ <actionGroup ref =" AdminOpenOrderCommentsHistoryActionGroup" stepKey =" clickOnCommentsHistoryTab " />
75
68
<waitForText selector =" {{AdminOrderCommentsTabSection.authorizationNotes('Voided')}}" userInput =" $voidAuthorizationNotesWithID" stepKey =" seeOrderHistoryNotes" />
76
- <!-- Check the last transaction of the order-->
77
- <actionGroup ref =" AdminViewTransactionsInOrderActionGroup" stepKey =" validateVoidTxn " />
69
+ <!-- Check the last transaction of the order and validate the details for Void and Authorization -->
70
+ <actionGroup ref =" AdminViewTransactionsInOrderActionGroup" stepKey =" validateVoidTransaction " />
78
71
<waitForText selector =" {{AdminTransactionsGridSection.isClosed}}" userInput =" Yes" stepKey =" seeIsClosedIsYes" />
79
- <waitForElementClickable selector =" {{AdminProductFormActionSection.backButton}}" stepKey =" waitForPBackButtonToBeClicked " />
72
+ <waitForElementClickable selector =" {{AdminProductFormActionSection.backButton}}" stepKey =" waitForBackButtonToBeClicked " />
80
73
<click selector =" {{AdminProductFormActionSection.backButton}}" stepKey =" clickBackButton" />
81
- <actionGroup ref =" AdminViewAuthorizationTransactionsInOrderActionGroup" stepKey =" validateAuthTxn " />
74
+ <actionGroup ref =" AdminViewAuthorizationTransactionsInOrderActionGroup" stepKey =" validateAuthTransaction " />
82
75
<waitForText selector =" {{AdminTransactionsGridSection.isClosed}}" userInput =" Yes" stepKey =" seeIsClosedIsYesForAuthorization" />
83
76
</test >
84
77
</tests >
0 commit comments