|
| 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 | +<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 10 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 11 | + <test name="StorefrontPartialWordQuickSearchUsingElasticSearchTest"> |
| 12 | + <annotations> |
| 13 | + <features value="Search"/> |
| 14 | + <stories value="Partial Word search using Elasticsearch"/> |
| 15 | + <title value="Support partial word search in Elasticsearch"/> |
| 16 | + <description value="User should be able to search decimal attribute using ElasticSearch"/> |
| 17 | + <severity value="CRITICAL"/> |
| 18 | + <testCaseId value="MC-21228"/> |
| 19 | + <group value="SearchEngineElasticsearch" /> |
| 20 | + </annotations> |
| 21 | + <before> |
| 22 | + <!-- Create subcategory --> |
| 23 | + <createData entity="SimpleSubCategory" stepKey="newCategory"/> |
| 24 | + <createData entity="ProductForPartialSearch" stepKey="product1"> |
| 25 | + <requiredEntity createDataKey="newCategory"/> |
| 26 | + </createData> |
| 27 | + <createData entity="ApiSimpleProduct" stepKey="product2"> |
| 28 | + <requiredEntity createDataKey="newCategory"/> |
| 29 | + </createData> |
| 30 | + <createData entity="ApiSimpleProductWithNoSpace" stepKey="product3"> |
| 31 | + <requiredEntity createDataKey="newCategory"/> |
| 32 | + </createData> |
| 33 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
| 34 | + </before> |
| 35 | + <after> |
| 36 | + <deleteData createDataKey="product1" stepKey="deleteProduct1"/> |
| 37 | + <deleteData createDataKey="product2" stepKey="deleteProduct2"/> |
| 38 | + <deleteData createDataKey="product3" stepKey="deleteProduct3"/> |
| 39 | + <deleteData createDataKey="newCategory" stepKey="deleteCategory"/> |
| 40 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="logoutOfAdmin"/> |
| 41 | + </after> |
| 42 | + |
| 43 | + <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToHomePage"/> |
| 44 | + |
| 45 | + <!--Perform a quick seach using a partial word from product SKU--> |
| 46 | + <actionGroup ref="StorefrontCheckQuickSearchStringActionGroup" stepKey="quickSearchPartialSku"> |
| 47 | + <argument name="phrase" value="partial"/> |
| 48 | + </actionGroup> |
| 49 | + |
| 50 | + <!--Perform a case insensitive quick search of partial word using case product name --> |
| 51 | + <actionGroup ref="StorefrontCheckQuickSearchStringActionGroup" stepKey="quickSearchPartialCaseInSensitive"> |
| 52 | + <argument name="phrase" value="simple"/> |
| 53 | + </actionGroup> |
| 54 | + <!--Perform a quick search using parts of the words from name/sku with additional characters--> |
| 55 | + <actionGroup ref="StorefrontCheckQuickSearchStringActionGroup" stepKey="quickSearchPartialWordsWithExtraChars"> |
| 56 | + <argument name="phrase" value="barstool"/> |
| 57 | + </actionGroup> |
| 58 | + <actionGroup ref="StorefrontCheckSearchIsEmptyActionGroup" stepKey="checkEmptySearchResult"/> |
| 59 | + |
| 60 | + </test> |
| 61 | +</tests> |
| 62 | + |
0 commit comments