Skip to content

Commit 7d4ce3b

Browse files
committed
ACQE-5766: Cancel a Sales Order placed with PayPal Payflow Link
- Corrected teststep in Testfile
1 parent 0734b90 commit 7d4ce3b

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

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

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,18 @@
4747
<actionGroup ref="StorefrontSwitchToPayPalPayflowActionGroup" stepKey="switchToPaypalPayflowIframe"/>
4848
<actionGroup ref="StorefrontFillCreditCardDetailsActionGroup" stepKey="inputCreditCardNumberFillCreditCardDetails"/>
4949
<waitForPageLoad stepKey="waitForOrderData"/>
50-
<grabTextFrom selector="{{CheckoutSuccessMainSection.orderNumber22}}" stepKey="grabOrderNumber"/>
51-
<!-- Go to order page & Open the order-->
52-
<actionGroup ref="FilterOrderGridByIdActionGroup" stepKey="filterOrderById">
53-
<argument name="orderId" value="$grabOrderNumber"/>
50+
<actionGroup ref="StorefrontClickOrderLinkFromCheckoutSuccessPageActionGroup" stepKey="clickOrderLink"/>
51+
<comment userInput="BIC workaround" stepKey="assertOrderLink"/>
52+
<grabFromCurrentUrl regex="~/order_id/(\d+)/~" stepKey="orderId"/>
53+
<!-- Verify Company Credit Message, Order Status, Payment Method, & Custom Reference Number on Admin Order Index Page -->
54+
<comment userInput="BIC workaround" stepKey="goToOrders"/>
55+
<comment userInput="BIC workaround" stepKey="waitForPageLoad"/>
56+
<comment userInput="BIC workaround" stepKey="filterOrderGridById"/>
57+
<comment userInput="BIC workaround" stepKey="clickOnViewLink"/>
58+
<comment userInput="BIC workaround" stepKey="waitForOrderPageToLoad"/>
59+
<actionGroup ref="AdminOpenOrderByEntityIdActionGroup" stepKey="openOrderById">
60+
<argument name="entityId" value="$orderId"/>
5461
</actionGroup>
55-
<actionGroup ref="AdminOrderGridClickFirstRowActionGroup" stepKey="clickOrderRow"/>
5662
</before>
5763
<after>
5864
<deleteData createDataKey="createProduct" stepKey="deleteProduct"/>

0 commit comments

Comments
 (0)