Skip to content

Commit 761d1e0

Browse files
ACQE-6168 : Fixing flaky test CustomerOrderCancellationFromRecentOrdersTest
1 parent 03621bb commit 761d1e0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
<before>
3131
<!-- Enable configuration -->
3232
<magentoCLI command="config:set sales/cancellation/enabled 1" stepKey="EnablingSalesCancellation"/>
33-
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
3433
<createData entity="_defaultCategory" stepKey="createCategory"/>
3534
<createData entity="_defaultProduct" stepKey="createSimpleProduct">
3635
<requiredEntity createDataKey="createCategory"/>
@@ -39,6 +38,12 @@
3938
<createData entity="CustomerCart" stepKey="createCustomerCart">
4039
<requiredEntity createDataKey="createCustomer"/>
4140
</createData>
41+
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="performReindex">
42+
<argument name="indices" value=""/>
43+
</actionGroup>
44+
<actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanCache">
45+
<argument name="tags" value=""/>
46+
</actionGroup>
4247
<createData entity="CustomerCartItem" stepKey="addCartItemOne">
4348
<requiredEntity createDataKey="createCustomerCart"/>
4449
<requiredEntity createDataKey="createSimpleProduct"/>
@@ -88,6 +93,7 @@
8893
<grabTextFrom selector="{{CustomerOrderCancellationSection.referenceToLatestOrderId}}" stepKey="getOrderId"/>
8994

9095
<!--Go to Admin Sales Order View Page-->
96+
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
9197
<amOnPage url="{{AdminSalesOrderViewPage.url({$getOrderId})}}" stepKey="navigateToSalesOrderViewPage"/>
9298
<waitForPageLoad stepKey="waitForAdminSalesOrderViewPageLoad"/>
9399

0 commit comments

Comments
 (0)