File tree Expand file tree Collapse file tree 7 files changed +81
-6
lines changed Expand file tree Collapse file tree 7 files changed +81
-6
lines changed Original file line number Diff line number Diff line change 21
21
<see userInput =" {{MinMaxQueryLength.Hint}}" selector =" {{AdminCatalogSearchConfigurationSection.maxQueryLengthHint}}" stepKey =" seeHint2" />
22
22
<uncheckOption selector =" {{AdminCatalogSearchConfigurationSection.minQueryLengthInherit}}" stepKey =" uncheckSystemValue" />
23
23
<fillField selector =" {{AdminCatalogSearchConfigurationSection.minQueryLength}}" userInput =" {{minLength}}" stepKey =" setMinQueryLength" />
24
+ <scrollTo selector =" {{AdminConfigCatalogCategoryPermissionsSection.catalogPermissionsTab}}" stepKey =" scrollToCatalogPermissionsTab" />
24
25
<click selector =" {{AdminCatalogSearchConfigurationSection.catalogSearchTab}}" stepKey =" collapseTab" />
25
26
<click selector =" {{ContentManagementSection.Save}}" stepKey =" saveConfig" />
26
27
<waitForPageLoad stepKey =" waitForConfigSaved" />
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 =" SetMinQueryLengthToDefault" type =" catalog_search_config_def" >
12
+ <requiredEntity type =" enable" >DefaultMinQueryLength</requiredEntity >
13
+ </entity >
14
+ <entity name =" UncheckMinQueryLengthAndSet" type =" catalog_search_config_query_length" >
15
+ <requiredEntity type =" number" >SetMinQueryLengthToOne</requiredEntity >
16
+ </entity >
17
+ <entity name =" DefaultMinQueryLength" type =" enable" >
18
+ <data key =" inherit" >true</data >
19
+ </entity >
20
+ <entity name =" DefaultMinQueryLengthDisable" type =" enable" >
21
+ <data key =" inherit" >0</data >
22
+ </entity >
23
+ <entity name =" SetMinQueryLengthToOne" type =" number" >
24
+ <data key =" value" >1</data >
25
+ </entity >
26
+
27
+ </entities >
File renamed without changes.
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
+ <operations xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
9
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:DataGenerator/etc/dataOperation.xsd" >
10
+ <operation name =" CatalogSearchConfigDefault" dataType =" catalog_search_config_def" type =" create" auth =" adminFormKey" url =" /admin/system_config/save/section/catalog/" method =" POST" >
11
+ <object key =" groups" dataType =" catalog_search_config_def" >
12
+ <object key =" search" dataType =" catalog_search_config_def" >
13
+ <object key =" fields" dataType =" catalog_search_config_def" >
14
+ <object key =" min_query_length" dataType =" enable" >
15
+ <field key =" inherit" >boolean</field >
16
+ </object >
17
+ </object >
18
+ </object >
19
+ </object >
20
+ </operation >
21
+ <operation name =" CatalogSearchConfigQueryLength" dataType =" catalog_search_config_query_length" type =" create" auth =" adminFormKey" url =" /admin/system_config/save/section/catalog/" method =" POST" >
22
+ <object key =" groups" dataType =" catalog_search_config_query_length" >
23
+ <object key =" search" dataType =" catalog_search_config_query_length" >
24
+ <object key =" fields" dataType =" catalog_search_config_query_length" >
25
+ <object key =" min_query_length" dataType =" number" >
26
+ <field key =" value" >integer</field >
27
+ </object >
28
+ </object >
29
+ </object >
30
+ </object >
31
+ </operation >
32
+ </operations >
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
+ <sections xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Page/etc/SectionObject.xsd" >
11
+ <section name =" AdminCatalogSearchConfigurationSection" >
12
+ <element name =" minQueryLength" type =" input" selector =" #catalog_search_min_query_length" />
13
+ <element name =" minQueryLengthInherit" type =" checkbox" selector =" #catalog_search_min_query_length_inherit" />
14
+ <element name =" minQueryLengthHint" type =" text" selector =" #row_catalog_search_min_query_length .value span" />
15
+ <element name =" maxQueryLengthHint" type =" text" selector =" #row_catalog_search_max_query_length .value span" />
16
+ </section >
17
+ </sections >
Original file line number Diff line number Diff line change 10
10
xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/testSchema.xsd" >
11
11
<test name =" MinimalQueryLengthForCatalogSearchTest" >
12
12
<annotations >
13
- <features value =" Catalog " />
13
+ <features value =" CatalogSearch " />
14
14
<title value =" Minimal query length for catalog search" />
15
15
<description value =" Minimal query length for catalog search" />
16
16
<severity value =" AVERAGE" />
17
17
<testCaseId value =" MC-6325" />
18
18
<useCaseId value =" MAGETWO-58764" />
19
- <group value =" Catalog " />
19
+ <group value =" CatalogSearch " />
20
20
</annotations >
21
21
<before >
22
22
<createData entity =" ApiCategory" stepKey =" createCategory" />
28
28
<after >
29
29
<deleteData createDataKey =" createCategory" stepKey =" deleteCategory" />
30
30
<deleteData createDataKey =" createProduct" stepKey =" deleteProduct" />
31
+ <createData entity =" SetMinQueryLengthToDefault" stepKey =" setMinimumQueryLengthToDefault" />
31
32
<actionGroup ref =" logout" stepKey =" logout" />
32
33
</after >
33
34
<actionGroup ref =" SetMinimalQueryLengthActionGroup" stepKey =" setMinQueryLength" />
35
+ <comment userInput =" go to Storefront and search for product" stepKey =" searchProdUsingMinQueryLength" />
34
36
<amOnPage url =" {{StorefrontHomePage.url}}" stepKey =" goToHomePage" />
35
37
<fillField selector =" {{StorefrontQuickSearchResultsSection.searchTextBox}}" userInput =" s" stepKey =" fillAttribute" />
36
38
<waitForPageLoad stepKey =" waitForSearchTextBox" />
Original file line number Diff line number Diff line change 11
11
<element name =" checkIfCatalogSearchTabExpand" type =" button" selector =" #catalog_search-head:not(.open)" />
12
12
<element name =" searchEngineDefaultSystemValue" type =" checkbox" selector =" #catalog_search_engine_inherit" />
13
13
<element name =" searchEngine" type =" select" selector =" #catalog_search_engine" />
14
- <element name =" minQueryLength" type =" input" selector =" #catalog_search_min_query_length" />
15
- <element name =" minQueryLengthInherit" type =" checkbox" selector =" #catalog_search_min_query_length_inherit" />
16
- <element name =" minQueryLengthHint" type =" text" selector =" #row_catalog_search_min_query_length .value span" />
17
- <element name =" maxQueryLengthHint" type =" text" selector =" #row_catalog_search_max_query_length .value span" />
18
14
</section >
19
15
</sections >
You can’t perform that action at this time.
0 commit comments