Skip to content

Commit b3705a8

Browse files
author
Joan He
committed
MC-19451: Adapt functional tests to Elasticsearch
1 parent 387e4b1 commit b3705a8

4 files changed

+16
-0
lines changed

app/code/Magento/Search/Test/Mftf/Test/StorefrontVerifySearchSuggestionByProductDescriptionTest.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232
<!-- Create product with description -->
3333
<comment userInput="Create product with description" stepKey="createProductWithDescriptionComment"/>
3434
<createData entity="SimpleProductWithDescription" stepKey="simpleProduct"/>
35+
36+
<!-- Perform reindex and flush cache -->
37+
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
38+
<magentoCLI command="cache:flush" stepKey="flushCache"/>
3539
</before>
3640
<after>
3741
<!-- Delete created product -->

app/code/Magento/Search/Test/Mftf/Test/StorefrontVerifySearchSuggestionByProductNameTest.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424

2525
<!--Create Simple Product -->
2626
<createData entity="defaultSimpleProduct" stepKey="simpleProduct"/>
27+
28+
<!-- Perform reindex and flush cache -->
29+
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
30+
<magentoCLI command="cache:flush" stepKey="flushCache"/>
2731
</before>
2832
<after>
2933
<!-- Delete create product -->

app/code/Magento/Search/Test/Mftf/Test/StorefrontVerifySearchSuggestionByProductShortDescriptionTest.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424

2525
<!-- Create product with short description -->
2626
<createData entity="ApiProductWithDescription" stepKey="product"/>
27+
28+
<!-- Perform reindex and flush cache -->
29+
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
30+
<magentoCLI command="cache:flush" stepKey="flushCache"/>
2731
</before>
2832
<after>
2933

app/code/Magento/Search/Test/Mftf/Test/StorefrontVerifySearchSuggestionByProductSkuTest.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424

2525
<!--Create Simple Product -->
2626
<createData entity="defaultSimpleProduct" stepKey="simpleProduct"/>
27+
28+
<!-- Perform reindex and flush cache -->
29+
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
30+
<magentoCLI command="cache:flush" stepKey="flushCache"/>
2731
</before>
2832
<after>
2933

0 commit comments

Comments
 (0)