Skip to content

Commit 293f7a0

Browse files
committed
MQE-2540: Create automated test for: "Check that "AND" query is performed when searching using ElasticSearch 7"
1 parent d3f202a commit 293f7a0

File tree

1 file changed

+71
-0
lines changed

1 file changed

+71
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
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="StorefrontQuickSearchUsingElasticSearchByProductSkuTest">
12+
<annotations>
13+
<features value="Elasticsearch7"/>
14+
<stories value="Storefront Search"/>
15+
<title value="Check that AND query is performed when searching using ElasticSearch 7"/>
16+
<description value="Check that AND query is performed when searching using ElasticSearch 7"/>
17+
<severity value="CRITICAL"/>
18+
<testCaseId value="MQE-2540"/>
19+
<useCaseId value="MC-29788"/>
20+
<group value="SearchEngineElasticsearch"/>
21+
</annotations>
22+
<before>
23+
<createData entity="defaultSimpleProduct" stepKey="createFirtsSimpleProduct">
24+
<field key="sku">ABCDE</field>
25+
</createData>
26+
<createData entity="defaultSimpleProduct" stepKey="createSecondSimpleProduct">
27+
<field key="sku">24 MB06</field>
28+
</createData>
29+
<createData entity="defaultSimpleProduct" stepKey="createThirdSimpleProduct">
30+
<field key="sku">24 MB04</field>
31+
</createData>
32+
<createData entity="defaultSimpleProduct" stepKey="createFourthSimpleProduct">
33+
<field key="sku">24 MB02</field>
34+
</createData>
35+
<createData entity="defaultSimpleProduct" stepKey="createFifthSimpleProduct">
36+
<field key="sku">24 MB01</field>
37+
</createData>
38+
39+
<actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanCache">
40+
<argument name="tags" value=""/>
41+
</actionGroup>
42+
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
43+
<argument name="indices" value=""/>
44+
</actionGroup>
45+
</before>
46+
<after>
47+
<deleteData createDataKey="createFirtsSimpleProduct" stepKey="deleteProductOne"/>
48+
<deleteData url="/V1/products/24+MB06" stepKey="deleteProductTwo"/>
49+
<deleteData url="/V1/products/24+MB04" stepKey="deleteProductThree"/>
50+
<deleteData url="/V1/products/24+MB02" stepKey="deleteProductFour"/>
51+
<deleteData url="/V1/products/24+MB01" stepKey="deleteProductFive"/>
52+
</after>
53+
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="openStoreFrontHomePage"/>
54+
<actionGroup ref="StorefrontCheckQuickSearchStringActionGroup" stepKey="quickSearchByProductSku">
55+
<argument name="phrase" value="$createThirdSimpleProduct.sku$"/>
56+
</actionGroup>
57+
<see userInput="4" selector="{{StorefrontCatalogSearchMainSection.productCount}}" stepKey="assertSearchResultCount"/>
58+
<actionGroup ref="StorefrontQuickSearchSeeProductByNameActionGroup" stepKey="assertSecondProductName">
59+
<argument name="productName" value="$createSecondSimpleProduct.name$"/>
60+
</actionGroup>
61+
<actionGroup ref="StorefrontQuickSearchSeeProductByNameActionGroup" stepKey="assertThirdProductName">
62+
<argument name="productName" value="$createThirdSimpleProduct.name$"/>
63+
</actionGroup>
64+
<actionGroup ref="StorefrontQuickSearchSeeProductByNameActionGroup" stepKey="assertFourthProductName">
65+
<argument name="productName" value="$createFourthSimpleProduct.name$"/>
66+
</actionGroup>
67+
<actionGroup ref="StorefrontQuickSearchSeeProductByNameActionGroup" stepKey="assertFifthProductName">
68+
<argument name="productName" value="$createFifthSimpleProduct.name$"/>
69+
</actionGroup>
70+
</test>
71+
</tests>

0 commit comments

Comments
 (0)