Skip to content

Commit b29fcf1

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

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

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

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
<group value="mtf_migrated"/>
1818
</annotations>
1919
<before>
20+
<!-- Disable search suggestions -->
21+
<magentoCLI command="config:set {{DisableSearchSuggestions.path}} {{DisableSearchSuggestions.value}}" stepKey="DisableSearchSuggestions"/>
2022
<!-- Login as admin -->
2123
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
2224
<!--Create Simple Product -->
@@ -25,14 +27,10 @@
2527
<argument name="indices" value=""/>
2628
</actionGroup>
2729
<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"/>
30-
<!-- Clean config cache -->
31-
<actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanConfigCacheAfterDisablingSuggestions">
32-
<argument name="tags" value="config"/>
33-
</actionGroup>
3430
</before>
3531
<after>
32+
<!-- Re-enable search suggestions -->
33+
<magentoCLI command="config:set {{EnableSearchSuggestions.path}} {{EnableSearchSuggestions.value}}" stepKey="EnableSearchSuggestions"/>
3634
<!-- Delete create product -->
3735
<deleteData createDataKey="simpleProduct" stepKey="deleteProduct"/>
3836
<!-- Go to the catalog search term page -->
@@ -48,12 +46,6 @@
4846
<!-- Delete created below search terms -->
4947
<actionGroup ref="AdminDeleteSearchTermActionGroup" stepKey="deleteSearchTerms"/>
5048
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
51-
<!-- Re-enable search suggestions -->
52-
<magentoCLI command="config:set {{EnableSearchSuggestions.path}} {{EnableSearchSuggestions.value}}" stepKey="EnableSearchSuggestions"/>
53-
<!-- Clean config cache -->
54-
<actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanConfigCacheAfterEnablingSuggestions">
55-
<argument name="tags" value="config"/>
56-
</actionGroup>
5749
</after>
5850
<!-- Go to storefront home page -->
5951
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="openStoreFrontHomePage"/>

0 commit comments

Comments
 (0)