Skip to content

Commit 5c6cb79

Browse files
ACQE-6817: CustomerOrderCancellationFromOrderHistoryTest
Added reindex as order was not found even after creating it
1 parent 11e7d89 commit 5c6cb79

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/code/Magento/OrderCancellationUi/Test/Mftf/Test/CustomerOrderCancellationFromOrderHistoryTest.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
<before>
1919
<!-- Enable configuration -->
2020
<magentoCLI command="config:set sales/cancellation/enabled 1" stepKey="EnablingSalesCancellation"/>
21-
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
2221
<createData entity="_defaultCategory" stepKey="createCategory"/>
2322
<createData entity="_defaultProduct" stepKey="createSimpleProduct">
2423
<requiredEntity createDataKey="createCategory"/>
@@ -37,6 +36,9 @@
3736
<updateData createDataKey="createCustomerCart" entity="CustomerOrderPaymentMethod" stepKey="sendCustomerPaymentInformationOne">
3837
<requiredEntity createDataKey="createCustomerCart"/>
3938
</updateData>
39+
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
40+
<argument name="indices" value=""/>
41+
</actionGroup>
4042
</before>
4143
<after>
4244
<!-- Disable configuration -->
@@ -77,6 +79,7 @@
7779
<grabTextFrom selector="{{CustomerOrderCancellationSection.referenceToLatestOrderId}}" stepKey="getOrderId"/>
7880

7981
<!--Go to Admin Sales Order View Page-->
82+
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
8083
<amOnPage url="{{AdminSalesOrderViewPage.url({$getOrderId})}}" stepKey="navigateToSalesOrderViewPage"/>
8184
<waitForPageLoad stepKey="waitForAdminSalesOrderViewPageLoad"/>
8285

0 commit comments

Comments
 (0)