|
8 | 8 |
|
9 | 9 | <tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
10 | 10 | xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
|
11 |
| - <test name="StorefrontElasticSearchForChineseLocaleTest"> |
| 11 | + <test name="StorefrontElasticSearch6ForChineseLocaleTest"> |
12 | 12 | <annotations>
|
13 |
| - <features value="Elasticsearch"/> |
14 |
| - <stories value="Elasticsearch for Chinese produce error"/> |
| 13 | + <features value="Elasticsearch6"/> |
| 14 | + <stories value="Elasticsearch6 for Chinese"/> |
15 | 15 | <title value="Elastic search for Chinese locale"/>
|
16 | 16 | <description value="Elastic search for Chinese locale"/>
|
17 | 17 | <severity value="CRITICAL"/>
|
|
21 | 21 | </annotations>
|
22 | 22 | <before>
|
23 | 23 | <!-- Set search engine to Elastic 6, set Locale to China, create category and product, then go to Storefront -->
|
24 |
| - <comment userInput="Set search engine to Elastic 6, set Locale to China, create category and product, then go to Storefront" stepKey="doInitialSetups"/> |
25 | 24 | <actionGroup ref="LoginAsAdmin" stepKey="login"/>
|
26 |
| - <magentoCLI command="config:set --scope=websites --scope-code=base general/locale/code zh_Hans_CN" stepKey="setLocaleToChina"/> |
27 |
| - <magentoCLI command="config:set catalog/search/engine elasticsearch6" stepKey="setSearchEngineToElastic6"/> |
| 25 | + <magentoCLI command="config:set --scope={{GeneralLocalCodeConfigsForChina.scope}} --scope-code={{GeneralLocalCodeConfigsForChina.scope_code}} {{GeneralLocalCodeConfigsForChina.path}} {{GeneralLocalCodeConfigsForChina.value}}" stepKey="setLocaleToChina"/> |
| 26 | + <magentoCLI command="config:set {{EnableElasticSearch6Config.path}} {{EnableElasticSearch6Config.value}}" stepKey="enableElasticsearch6"/> |
28 | 27 | <actionGroup ref="AdminElasticConnectionTestActionGroup" stepKey="checkConnection"/>
|
29 | 28 | <magentoCLI command="cache:flush" stepKey="flushCache"/>
|
30 | 29 | <createData entity="ApiCategory" stepKey="createCategory"/>
|
|
35 | 34 | </before>
|
36 | 35 | <after>
|
37 | 36 | <!-- Delete created data and reset initial configuration -->
|
38 |
| - <comment userInput="Delete created data and reset initial configuration" stepKey="deleteCreatedDataAndResetConfig"/> |
39 |
| - <amOnPage url="{{GeneralConfigurationPage.url}}" stepKey="goToConfigurationGeneralPage"/> |
40 |
| - <waitForPageLoad stepKey="waitForPageLoad"/> |
41 |
| - <actionGroup ref="AdminSwitchWebsiteActionGroup" stepKey="adminSwitchWebsiteActionGroup"> |
42 |
| - <argument name="website" value="_defaultWebsite"/> |
43 |
| - </actionGroup> |
44 |
| - <conditionalClick selector="{{LocaleOptionsSection.sectionHeader}}" dependentSelector="{{LocaleOptionsSection.timezone}}" visible="false" stepKey="openLocaleSection"/> |
45 |
| - <checkOption selector="{{LocaleOptionsSection.defaultLocale}}" stepKey="setDefaultLocaleValue"/> |
46 |
| - <click selector="{{LocaleOptionsSection.sectionHeader}}" stepKey="closeTab"/> |
47 |
| - <click selector="{{AdminMainActionsSection.save}}" stepKey="clickSaveConfigButton"/> |
48 |
| - <see selector="{{AdminMessagesSection.success}}" userInput="You saved the configuration." stepKey="seeSuccess"/> |
49 |
| - <createData entity="SetCatalogSearchEngineToDefault" stepKey="setSearchEngineToDefault"/> |
| 37 | + <magentoCLI command="config:set --scope={{GeneralLocalCodeConfigsForUS.scope}} --scope-code={{GeneralLocalCodeConfigsForUS.scope_code}} {{GeneralLocalCodeConfigsForUS.path}} {{GeneralLocalCodeConfigsForUS.value}}" stepKey="setLocaleToUS"/> |
| 38 | + <magentoCLI command="config:set {{SetDefaultSearchEngineConfig.path}} {{SetDefaultSearchEngineConfig.value}}" stepKey="resetSearchEnginePreviousState"/> |
50 | 39 | <deleteData createDataKey="createCategory" stepKey="deleteCategory"/>
|
51 | 40 | <deleteData createDataKey="createProduct" stepKey="deleteSimpleProduct"/>
|
52 | 41 | <actionGroup ref="logout" stepKey="logoutOfAdmin"/>
|
53 | 42 | </after>
|
54 | 43 | <!-- Search for product by name -->
|
55 |
| - <comment userInput="Search for product by name" stepKey="searchForProduct"/> |
56 | 44 | <actionGroup ref="StorefrontCheckQuickSearchStringActionGroup" stepKey="quickSearchByProductName">
|
57 | 45 | <argument name="phrase" value="$$createProduct.name$$"/>
|
58 | 46 | </actionGroup>
|
59 | 47 | <!-- Check if searched product is displayed -->
|
60 |
| - <comment userInput="Check if searched product is displayed" stepKey="checkThatProductIsDisplayed"/> |
61 | 48 | <see selector="{{StorefrontCategoryMainSection.productName}}" userInput="$$createProduct.name$$" stepKey="seeProductNameInCategoryPage"/>
|
62 | 49 | </test>
|
63 | 50 | </tests>
|
0 commit comments