Skip to content

Commit 5601d93

Browse files
author
Joan He
committed
MC-19451: Adapt functional tests to Elasticsearch
1 parent 9b58493 commit 5601d93

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

app/code/Magento/CatalogSearch/Test/Mftf/Test/AdvanceCatalogSearchSimpleProductTest.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@
5252
<features value="CatalogSearch"/>
5353
<group value="CatalogSearch"/>
5454
</annotations>
55+
56+
<!-- Perform reindex and flush cache -->
57+
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
58+
<magentoCLI command="cache:flush" stepKey="flushCache"/>
59+
5560
<actionGroup ref="GoToStoreViewAdvancedCatalogSearchActionGroup" stepKey="GoToStoreViewAdvancedCatalogSearchActionGroup"/>
5661
<actionGroup ref="StorefrontAdvancedCatalogSearchByShortDescriptionActionGroup" stepKey="search">
5762
<argument name="shortDescription" value="$$product.custom_attributes[short_description]$$"/>

app/code/Magento/Wishlist/Test/Mftf/Test/StorefrontRemoveProductsFromWishlistUsingSidebarTest.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@
3434
<deleteData createDataKey="categorySecond" stepKey="deleteCategorySecond"/>
3535
<deleteData createDataKey="customer" stepKey="deleteCustomer"/>
3636
</after>
37+
38+
<!-- Perform reindex and flush cache -->
39+
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
40+
<magentoCLI command="cache:flush" stepKey="flushCache"/>
41+
3742
<!-- Sign in as customer -->
3843
<actionGroup ref="LoginToStorefrontActionGroup" stepKey="loginToStorefrontAccount">
3944
<argument name="Customer" value="$$customer$$"/>

0 commit comments

Comments
 (0)