Skip to content

Commit d449ff9

Browse files
committed
ACQE-5766: Cancel a Sales Order placed with PayPal Payflow Link
- Testfile are updated removinf BIC Comment
1 parent 0bd33d3 commit d449ff9

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

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

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<annotations>
1212
<features value="Payflow"/>
1313
<stories value="Payment Payflow Link methods"/>
14-
<title value="Sales Order Cancellation Using PayPal Payflow Link"/>
14+
<title value="Cancel a Sales Order placed with PayPal Payflow Link"/>
1515
<description value="Admin can cancel orders placed by customers using PayPal Payflow"/>
1616
<severity value="MAJOR"/>
1717
<testCaseId value="AC-5429"/>
@@ -24,11 +24,11 @@
2424
</createData>
2525
<!-- US Customer is created -->
2626
<createData entity="Simple_US_Customer" stepKey="createCustomer"/>
27-
<!-- Precondition Step1: Login To admin -->
2827
<actionGroup ref="AdminLoginActionGroup" stepKey="login"/>
2928
<actionGroup ref="AdminEnablePayPalPayFlowLinkActionGroup" stepKey="ConfigPayPalPayFlowLink">
3029
<argument name="credentials" value="SamplePaypalPaymentsFlowLinkConfig"/>
3130
</actionGroup>
31+
<!-- Precondition Step1: Order is placed within PayPal Payflow Link -->
3232
<actionGroup ref="LoginToStorefrontActionGroup" stepKey="loginToStorefrontAccount">
3333
<argument name="Customer" value="$$createCustomer$$"/>
3434
</actionGroup>
@@ -49,14 +49,7 @@
4949
<actionGroup ref="StorefrontFillCreditCardDetailsActionGroup" stepKey="inputCreditCardNumberFillCreditCardDetails"/>
5050
<waitForPageLoad stepKey="waitForOrderData"/>
5151
<actionGroup ref="StorefrontClickOrderLinkFromCheckoutSuccessPageActionGroup" stepKey="clickOrderLink"/>
52-
<comment userInput="BIC workaround" stepKey="assertOrderLink"/>
5352
<grabFromCurrentUrl regex="~/order_id/(\d+)/~" stepKey="orderId"/>
54-
<!-- Verify Company Credit Message, Order Status, Payment Method, & Custom Reference Number on Admin Order Index Page -->
55-
<comment userInput="BIC workaround" stepKey="goToOrders"/>
56-
<comment userInput="BIC workaround" stepKey="waitForPageLoad"/>
57-
<comment userInput="BIC workaround" stepKey="filterOrderGridById"/>
58-
<comment userInput="BIC workaround" stepKey="clickOnViewLink"/>
59-
<comment userInput="BIC workaround" stepKey="waitForOrderPageToLoad"/>
6053
<actionGroup ref="AdminOpenOrderByEntityIdActionGroup" stepKey="openOrderById">
6154
<argument name="entityId" value="$orderId"/>
6255
</actionGroup>
@@ -69,6 +62,10 @@
6962
<actionGroup ref="StorefrontCustomerLogoutActionGroup" stepKey="logoutCustomer"/>
7063
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
7164
</after>
65+
<!-- Step1,2&3: Log in to Admin, Go to Sales > Orders & Open the Order from preconditions -->
66+
<actionGroup ref="AdminOpenOrderByEntityIdActionGroup" stepKey="openOrderById">
67+
<argument name="entityId" value="$orderId"/>
68+
</actionGroup>
7269
<waitForPageLoad stepKey="waitPage"/>
7370
<!-- Step 4&5: Click on Cancel button then OK Button-->
7471
<actionGroup ref="CancelPendingOrderActionGroup" stepKey="cancelOrder"/>

0 commit comments

Comments
 (0)