Skip to content

Commit fec9458

Browse files
committed
ACP2E-2272: Search suggestions not working on mini search form
1 parent aba9f24 commit fec9458

6 files changed

+16
-16
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
<group value="mtf_migrated"/>
1818
</annotations>
1919
<before>
20-
<!-- Disable search suggestions -->
21-
<magentoCLI command="config:set {{DisableSearchSuggestions.path}} {{DisableSearchSuggestions.value}}" stepKey="DisableSearchSuggestions"/>
2220
<!-- Login as admin -->
2321
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
2422
<!--Create Simple Product -->
@@ -27,10 +25,10 @@
2725
<argument name="indices" value=""/>
2826
</actionGroup>
2927
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCache"/>
28+
<!-- Disable search suggestions -->
29+
<magentoCLI command="config:set {{DisableSearchSuggestions.path}} {{DisableSearchSuggestions.value}}" stepKey="DisableSearchSuggestions"/>
3030
</before>
3131
<after>
32-
<!-- Re-enable search suggestions -->
33-
<magentoCLI command="config:set {{EnableSearchSuggestions.path}} {{EnableSearchSuggestions.value}}" stepKey="EnableSearchSuggestions"/>
3432
<!-- Delete create product -->
3533
<deleteData createDataKey="simpleProduct" stepKey="deleteProduct"/>
3634
<!-- Go to the catalog search term page -->
@@ -46,6 +44,8 @@
4644
<!-- Delete created below search terms -->
4745
<actionGroup ref="AdminDeleteSearchTermActionGroup" stepKey="deleteSearchTerms"/>
4846
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
47+
<!-- Re-enable search suggestions -->
48+
<magentoCLI command="config:set {{EnableSearchSuggestions.path}} {{EnableSearchSuggestions.value}}" stepKey="EnableSearchSuggestions"/>
4949
</after>
5050
<!-- Go to storefront home page -->
5151
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="openStoreFrontHomePage"/>

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
<argument name="indices" value=""/>
3232
</actionGroup>
3333
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCache"/>
34+
<!-- Disable search suggestions -->
35+
<magentoCLI command="config:set {{DisableSearchSuggestions.path}} {{DisableSearchSuggestions.value}}" stepKey="DisableSearchSuggestions"/>
3436
</before>
3537
<after>
3638
<!-- Delete create product -->
@@ -45,6 +47,8 @@
4547
</actionGroup>
4648
<!-- Delete created below search terms -->
4749
<actionGroup ref="AdminDeleteSearchTermActionGroup" stepKey="deleteSearchTerms"/>
50+
<!-- Re-enable search suggestions -->
51+
<magentoCLI command="config:set {{EnableSearchSuggestions.path}} {{EnableSearchSuggestions.value}}" stepKey="EnableSearchSuggestions"/>
4852
</after>
4953

5054
<!-- Go to storefront home page -->

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,6 @@
5151
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
5252
<!-- Re-enable search suggestions -->
5353
<magentoCLI command="config:set {{EnableSearchSuggestions.path}} {{EnableSearchSuggestions.value}}" stepKey="EnableSearchSuggestions"/>
54-
<!-- Clean config cache -->
55-
<actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanConfigCacheAfterEnablingSuggestions">
56-
<argument name="tags" value="config"/>
57-
</actionGroup>
5854
</after>
5955
<!-- Go to storefront home page -->
6056
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="openStoreFrontHomePage"/>

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
<argument name="indices" value=""/>
3131
</actionGroup>
3232
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCache"/>
33+
<!-- Disable search suggestions -->
34+
<magentoCLI command="config:set {{DisableSearchSuggestions.path}} {{DisableSearchSuggestions.value}}" stepKey="DisableSearchSuggestions"/>
3335
</before>
3436
<after>
3537
<!-- Delete create product -->
@@ -45,6 +47,8 @@
4547
<!-- Delete created below search terms -->
4648
<actionGroup ref="AdminDeleteSearchTermActionGroup" stepKey="deleteSearchTerms"/>
4749
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
50+
<!-- Re-enable search suggestions -->
51+
<magentoCLI command="config:set {{EnableSearchSuggestions.path}} {{EnableSearchSuggestions.value}}" stepKey="EnableSearchSuggestions"/>
4852
</after>
4953

5054
<!-- Go to storefront home page -->

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@
3232
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCache"/>
3333
<!-- Disable search suggestions -->
3434
<magentoCLI command="config:set {{DisableSearchSuggestions.path}} {{DisableSearchSuggestions.value}}" stepKey="DisableSearchSuggestions"/>
35-
<!-- Clean config cache -->
36-
<actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanConfigCacheAfterDisablingSuggestions">
37-
<argument name="tags" value="config"/>
38-
</actionGroup>
3935
</before>
4036
<after>
4137

@@ -56,10 +52,6 @@
5652

5753
<!-- Re-enable search suggestions -->
5854
<magentoCLI command="config:set {{EnableSearchSuggestions.path}} {{EnableSearchSuggestions.value}}" stepKey="EnableSearchSuggestions"/>
59-
<!-- Clean config cache -->
60-
<actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanConfigCacheAfterEnablingSuggestions">
61-
<argument name="tags" value="config"/>
62-
</actionGroup>
6355
</after>
6456

6557
<!-- Go to storefront home page -->

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
<argument name="indices" value=""/>
3131
</actionGroup>
3232
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCache"/>
33+
<!-- Disable search suggestions -->
34+
<magentoCLI command="config:set {{DisableSearchSuggestions.path}} {{DisableSearchSuggestions.value}}" stepKey="DisableSearchSuggestions"/>
3335
</before>
3436
<after>
3537

@@ -47,6 +49,8 @@
4749
<!-- Delete created below search terms -->
4850
<actionGroup ref="AdminDeleteSearchTermActionGroup" stepKey="deleteSearchTerms"/>
4951
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
52+
<!-- Re-enable search suggestions -->
53+
<magentoCLI command="config:set {{EnableSearchSuggestions.path}} {{EnableSearchSuggestions.value}}" stepKey="EnableSearchSuggestions"/>
5054
</after>
5155

5256
<!-- Go to storefront home page -->

0 commit comments

Comments
 (0)