File tree Expand file tree Collapse file tree 4 files changed +53
-1
lines changed
AdvancedSearch/Test/Mftf/Data Expand file tree Collapse file tree 4 files changed +53
-1
lines changed Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <!--
3
+ /**
4
+ * Copyright © Magento, Inc. All rights reserved.
5
+ * See COPYING.txt for license details.
6
+ */
7
+ -->
8
+
9
+ <entities xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:DataGenerator/etc/dataProfileSchema.xsd" >
11
+ <entity name =" DisableSearchSuggestions" >
12
+ <data key =" path" >catalog/search/search_suggestion_enabled</data >
13
+ <data key =" value" >0</data >
14
+ </entity >
15
+ <entity name =" EnableSearchSuggestions" >
16
+ <data key =" path" >catalog/search/search_suggestion_enabled</data >
17
+ <data key =" value" >1</data >
18
+ </entity >
19
+ </entities >
Original file line number Diff line number Diff line change 25
25
<argument name =" indices" value =" " />
26
26
</actionGroup >
27
27
<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}}" after =" flushCache" stepKey =" DisableSearchSuggestions" />
30
+ <!-- Clean config cache -->
31
+ <actionGroup ref =" CliCacheCleanActionGroup" stepKey =" cleanConfigCacheAfterDisablingSuggestions" >
32
+ <argument name =" tags" value =" config" />
33
+ </actionGroup >
28
34
</before >
29
35
<after >
30
36
<!-- Delete create product -->
42
48
<!-- Delete created below search terms -->
43
49
<actionGroup ref =" AdminDeleteSearchTermActionGroup" stepKey =" deleteSearchTerms" />
44
50
<actionGroup ref =" AdminLogoutActionGroup" stepKey =" logout" />
51
+ <!-- Re-enable search suggestions -->
52
+ <magentoCLI command =" config:set {{EnableSearchSuggestions.path}} {{EnableSearchSuggestions.value}}" after =" logout" stepKey =" EnableSearchSuggestions" />
53
+ <!-- Clean config cache -->
54
+ <actionGroup ref =" CliCacheCleanActionGroup" stepKey =" cleanConfigCacheAfterEnablingSuggestions" >
55
+ <argument name =" tags" value =" config" />
56
+ </actionGroup >
45
57
</after >
46
58
<!-- Go to storefront home page -->
47
59
<actionGroup ref =" StorefrontOpenHomePageActionGroup" stepKey =" openStoreFrontHomePage" />
Original file line number Diff line number Diff line change 27
27
<actionGroup ref =" DeleteProductsIfTheyExistActionGroup" stepKey =" deleteAllProducts" />
28
28
<!-- Create product with description -->
29
29
<createData entity =" SimpleProductWithDescription" stepKey =" simpleProduct" />
30
+ <!-- Disable search suggestions -->
31
+ <magentoCLI command =" config:set {{DisableSearchSuggestions.path}} {{DisableSearchSuggestions.value}}" after =" simpleProduct" stepKey =" DisableSearchSuggestions" />
30
32
31
33
<actionGroup ref =" CliIndexerReindexActionGroup" stepKey =" reindex" >
32
34
<argument name =" indices" value =" " />
33
35
</actionGroup >
34
36
<actionGroup ref =" CliCacheCleanActionGroup" stepKey =" flushCache" >
35
- <argument name =" tags" value =" full_page" />
37
+ <argument name =" tags" value =" full_page, config " />
36
38
</actionGroup >
37
39
</before >
38
40
<after >
47
49
<!-- Delete created below search terms -->
48
50
<actionGroup ref =" AdminDeleteSearchTermActionGroup" stepKey =" deleteSearchTerms" />
49
51
<actionGroup ref =" AdminLogoutActionGroup" stepKey =" logout" />
52
+ <!-- Re-enable search suggestions -->
53
+ <magentoCLI command =" config:set {{EnableSearchSuggestions.path}} {{EnableSearchSuggestions.value}}" after =" logout" stepKey =" EnableSearchSuggestions" />
54
+ <!-- Clean config cache -->
55
+ <actionGroup ref =" CliCacheCleanActionGroup" stepKey =" cleanConfigCacheAfterEnablingSuggestions" >
56
+ <argument name =" tags" value =" config" />
57
+ </actionGroup >
50
58
</after >
51
59
<!-- Go to storefront home page -->
52
60
<actionGroup ref =" StorefrontOpenHomePageActionGroup" stepKey =" openStoreFrontHomePage" />
Original file line number Diff line number Diff line change 30
30
<argument name =" indices" value =" " />
31
31
</actionGroup >
32
32
<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}}" after =" flushCache" stepKey =" DisableSearchSuggestions" />
35
+ <!-- Clean config cache -->
36
+ <actionGroup ref =" CliCacheCleanActionGroup" stepKey =" cleanConfigCacheAfterDisablingSuggestions" >
37
+ <argument name =" tags" value =" config" />
38
+ </actionGroup >
33
39
</before >
34
40
<after >
35
41
47
53
<!-- Delete created below search terms -->
48
54
<actionGroup ref =" AdminDeleteSearchTermActionGroup" stepKey =" deleteSearchTerms" />
49
55
<actionGroup ref =" AdminLogoutActionGroup" stepKey =" logout" />
56
+
57
+ <!-- Re-enable search suggestions -->
58
+ <magentoCLI command =" config:set {{EnableSearchSuggestions.path}} {{EnableSearchSuggestions.value}}" after =" logout" stepKey =" EnableSearchSuggestions" />
59
+ <!-- Clean config cache -->
60
+ <actionGroup ref =" CliCacheCleanActionGroup" stepKey =" cleanConfigCacheAfterEnablingSuggestions" >
61
+ <argument name =" tags" value =" config" />
62
+ </actionGroup >
50
63
</after >
51
64
52
65
<!-- Go to storefront home page -->
You can’t perform that action at this time.
0 commit comments