|
10 | 10 | xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
|
11 | 11 | <test name="StorefrontElasticsearch6SearchInvalidValueTest">
|
12 | 12 | <annotations>
|
13 |
| - <features value="Search"/> |
| 13 | + <features value="Elasticsearch6"/> |
14 | 14 | <stories value="Search Product on Storefront"/>
|
15 | 15 | <title value="Elasticsearch: try to search by invalid value of 'Searchable' attribute"/>
|
16 | 16 | <description value="Elasticsearch: try to search by invalid value of 'Searchable' attribute"/>
|
|
24 | 24 | <!--Create category-->
|
25 | 25 | <createData entity="SimpleSubCategory" stepKey="createCategory"/>
|
26 | 26 | <!--Enable Elasticsearch-->
|
27 |
| - <magentoCLI command="config:set catalog/search/engine elasticsearch6" stepKey="enableElasticsearch"/> |
| 27 | + <magentoCLI command="config:set {{EnableElasticSearch6Config.path}} {{EnableElasticSearch6Config.value}}" stepKey="enableElasticsearch6"/> |
28 | 28 | <!--Set Minimal Query Length-->
|
29 |
| - <magentoCLI command="config:set catalog/search/min_query_length 2" stepKey="setMinQueryLength"/> |
| 29 | + <magentoCLI command="config:set {{SetMinQueryLength2Config.path}} {{SetMinQueryLength2Config.value}}" stepKey="setMinQueryLength"/> |
30 | 30 | <!--Reindex indexes and clear cache-->
|
31 | 31 | <magentoCLI command="indexer:reindex catalogsearch_fulltext" stepKey="reindex"/>
|
32 | 32 | <magentoCLI command="cache:flush config" stepKey="flushCache"/>
|
33 | 33 | </before>
|
34 | 34 | <after>
|
35 | 35 | <!--Set configs to default-->
|
36 |
| - <magentoCLI command="config:set catalog/search/min_query_length 3" stepKey="setMinQueryLengthPreviousState"/> |
37 |
| - <magentoCLI command="config:set catalog/search/engine mysql" stepKey="resetSearchEnginePreviousState"/> |
| 36 | + <magentoCLI command="config:set {{SetMinQueryLength3Config.path}} {{SetMinQueryLength3Config.value}}" stepKey="setMinQueryLengthPreviousState"/> |
| 37 | + <magentoCLI command="config:set {{SetDefaultSearchEngineConfig.path}} {{SetDefaultSearchEngineConfig.value}}" stepKey="resetSearchEnginePreviousState"/> |
38 | 38 | <!--Delete created data-->
|
39 | 39 | <deleteData createDataKey="createCategory" stepKey="deleteCategory"/>
|
40 | 40 | <actionGroup ref="deleteProductAttributeByAttributeCode" stepKey="deleteProductAttribute">
|
|
0 commit comments