Skip to content

Commit e912d49

Browse files
author
Joan He
committed
MC-19451: Adapt functional tests to Elasticsearch
1 parent 4000a0b commit e912d49

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

app/code/Magento/Checkout/Test/Mftf/Test/StorefrontCustomerCheckoutTest.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,10 @@
221221
<magentoCLI command="config:set payment/checkmo/allowspecific 1" stepKey="allowSpecificValue" />
222222
<magentoCLI command="config:set payment/checkmo/specificcountry GB" stepKey="specificCountryValue" />
223223
<createData entity="Simple_US_Customer" stepKey="simpleuscustomer"/>
224+
225+
<!-- Perform reindex and flush cache -->
226+
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
227+
<magentoCLI command="cache:flush" stepKey="flushCache"/>
224228
</before>
225229
<after>
226230
<deleteData createDataKey="createCategory" stepKey="deleteCategory"/>

app/code/Magento/Checkout/Test/Mftf/Test/StorefrontGuestCheckoutTest.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
<createData entity="ApiSimpleProduct" stepKey="createProduct">
2424
<requiredEntity createDataKey="createCategory"/>
2525
</createData>
26+
27+
<!-- Perform reindex and flush cache -->
28+
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
29+
<magentoCLI command="cache:flush" stepKey="flushCache"/>
2630
</before>
2731
<after>
2832
<actionGroup ref="logout" stepKey="adminLogout"/>

0 commit comments

Comments
 (0)