Skip to content

Commit 4b0dbf6

Browse files
author
Joan He
committed
MC-19451: Adapt functional tests to Elasticsearch
1 parent b92f4ff commit 4b0dbf6

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
<features value="CatalogSearch"/>
1414
<group value="CatalogSearch"/>
1515
</annotations>
16+
17+
<!-- Perform reindex and flush cache -->
18+
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
19+
<magentoCLI command="cache:flush" stepKey="flushCache"/>
20+
1621
<actionGroup ref="GoToStoreViewAdvancedCatalogSearchActionGroup" stepKey="GoToStoreViewAdvancedCatalogSearchActionGroup"/>
1722
<actionGroup ref="StorefrontAdvancedCatalogSearchByProductNameActionGroup" stepKey="search">
1823
<argument name="name" value="$$product.name$$"/>
@@ -26,6 +31,11 @@
2631
<features value="CatalogSearch"/>
2732
<group value="CatalogSearch"/>
2833
</annotations>
34+
35+
<!-- Perform reindex and flush cache -->
36+
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
37+
<magentoCLI command="cache:flush" stepKey="flushCache"/>
38+
2939
<actionGroup ref="GoToStoreViewAdvancedCatalogSearchActionGroup" stepKey="GoToStoreViewAdvancedCatalogSearchActionGroup"/>
3040
<actionGroup ref="StorefrontAdvancedCatalogSearchByProductSkuActionGroup" stepKey="search">
3141
<argument name="sku" value="$$product.sku$$"/>
@@ -39,6 +49,10 @@
3949
<features value="CatalogSearch"/>
4050
<group value="CatalogSearch"/>
4151
</annotations>
52+
<!-- Perform reindex and flush cache -->
53+
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
54+
<magentoCLI command="cache:flush" stepKey="flushCache"/>
55+
4256
<actionGroup ref="GoToStoreViewAdvancedCatalogSearchActionGroup" stepKey="GoToStoreViewAdvancedCatalogSearchActionGroup"/>
4357
<actionGroup ref="StorefrontAdvancedCatalogSearchByDescriptionActionGroup" stepKey="search">
4458
<argument name="description" value="$$product.custom_attributes[description]$$"/>
@@ -70,6 +84,11 @@
7084
<features value="CatalogSearch"/>
7185
<group value="CatalogSearch"/>
7286
</annotations>
87+
88+
<!-- Perform reindex and flush cache -->
89+
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
90+
<magentoCLI command="cache:flush" stepKey="flushCache"/>
91+
7392
<actionGroup ref="GoToStoreViewAdvancedCatalogSearchActionGroup" stepKey="GoToStoreViewAdvancedCatalogSearchActionGroup"/>
7493
<actionGroup ref="StorefrontAdvancedCatalogSearchByProductNameAndPriceActionGroup" stepKey="search">
7594
<argument name="name" value="$$arg1.name$$"/>

0 commit comments

Comments
 (0)