Skip to content

Commit 033cbb8

Browse files
committed
MC-22164: Flaky test MC-17906: Elasticsearch: try to search by invalid value of 'Searchable' attribute
1 parent 9d990b2 commit 033cbb8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/code/Magento/Elasticsearch6/Test/Mftf/Test/StorefrontElasticsearch6SearchInvalidValueTest.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,12 @@
1717
<severity value="MAJOR"/>
1818
<testCaseId value="MC-17906"/>
1919
<useCaseId value="MC-15759"/>
20-
<group value="search"/>
20+
<group value="elasticsearch"/>
2121
</annotations>
2222
<before>
2323
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
2424
<!--Create category-->
2525
<createData entity="SimpleSubCategory" stepKey="createCategory"/>
26-
<!--Enable Elasticsearch-->
27-
<magentoCLI command="config:set {{EnableElasticSearch6Config.path}} {{EnableElasticSearch6Config.value}}" stepKey="enableElasticsearch6"/>
2826
<!--Set Minimal Query Length-->
2927
<magentoCLI command="config:set {{SetMinQueryLength2Config.path}} {{SetMinQueryLength2Config.value}}" stepKey="setMinQueryLength"/>
3028
<!--Reindex indexes and clear cache-->
@@ -34,7 +32,6 @@
3432
<after>
3533
<!--Set configs to default-->
3634
<magentoCLI command="config:set {{SetMinQueryLength3Config.path}} {{SetMinQueryLength3Config.value}}" stepKey="setMinQueryLengthPreviousState"/>
37-
<magentoCLI command="config:set {{SetDefaultSearchEngineConfig.path}} {{SetDefaultSearchEngineConfig.value}}" stepKey="resetSearchEnginePreviousState"/>
3835
<!--Delete created data-->
3936
<deleteData createDataKey="createCategory" stepKey="deleteCategory"/>
4037
<actionGroup ref="deleteProductAttributeByAttributeCode" stepKey="deleteProductAttribute">
@@ -78,6 +75,9 @@
7875
</actionGroup>
7976
<fillField selector="{{AdminProductFormSection.attributeRequiredInput(textProductAttribute.attribute_code)}}" userInput="searchable" stepKey="fillTheAttributeRequiredInputField"/>
8077
<click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="clickSaveButton"/>
78+
<!-- TODO: REMOVE AFTER FIX MC-21717 -->
79+
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
80+
<magentoCLI command="cache:flush eav" stepKey="flushCache"/>
8181
<!--Assert search results on storefront-->
8282
<amOnPage url="{{StorefrontHomePage.url}}" stepKey="goToStorefrontPage"/>
8383
<waitForPageLoad stepKey="waitForStorefrontPageLoad"/>

0 commit comments

Comments
 (0)