Skip to content

Commit 8b64733

Browse files
committed
MC-31467: Create MFTF test to search weight attribute with ElasticSearch
1 parent de3dac7 commit 8b64733

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@
77
-->
88
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
99
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
10-
<actionGroup name="AdminMakeProductAttributeSearchableOrUnsearchableInAQuickSearchActionGroup">
10+
<actionGroup name="AdminSetUseInSearchValueForProductAttributeActionGroup">
1111
<annotations>
12-
<description>You are on product attribute edit page</description>
12+
<description>Set 'Use In Search' value for product attribute</description>
1313
</annotations>
1414
<arguments>
1515
<argument name="useInSearchValue" type="string" defaultValue="Yes"/>
1616
</arguments>
1717

1818
<scrollToTopOfPage stepKey="scrollToTopOfPage"/>
1919
<click selector="{{StorefrontPropertiesSection.StoreFrontPropertiesTab}}" stepKey="clickStorefrontPropertiesTab"/>
20-
<waitForPageLoad stepKey="waitForPageLoad"/>
20+
<waitForElementVisible selector="{{AdvancedAttributePropertiesSection.UseInSearch}}" stepKey="waitForUseInSearchElementVisible"/>
2121
<selectOption selector="{{AdvancedAttributePropertiesSection.UseInSearch}}" userInput="{{useInSearchValue}}" stepKey="selectYesInUseInSearch"/>
2222
</actionGroup>
2323
</actionGroups>

app/code/Magento/Search/Test/Mftf/Test/StorefrontUsingElasticSearchWithWeightAttributeTest.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<features value="CatalogSearch"/>
1414
<stories value="Storefront Search"/>
1515
<title value="Using ElasticSearch with weight attribute"/>
16-
<description value="Using ElasticSearch with product has weight attribute"/>
16+
<description value="Use ElasticSearch for products with weight attributes"/>
1717
<severity value="CRITICAL"/>
1818
<testCaseId value="MC-31368"/>
1919
<group value="elasticsearch"/>
@@ -31,7 +31,7 @@
3131
<actionGroup ref="OpenProductAttributeFromSearchResultInGridActionGroup" stepKey="openWeightProductAttributeInAdmin">
3232
<argument name="productAttributeCode" value="weight"/>
3333
</actionGroup>
34-
<actionGroup ref="AdminMakeProductAttributeSearchableOrUnsearchableInAQuickSearchActionGroup" stepKey="makeAttributeUnsearchableInAQuickSearch">
34+
<actionGroup ref="AdminSetUseInSearchValueForProductAttributeActionGroup" stepKey="makeAttributeUnsearchableInAQuickSearch">
3535
<argument name="useInSearchValue" value="No"/>
3636
</actionGroup>
3737
<actionGroup ref="saveProductAttribute" stepKey="saveAttributeChanges"/>
@@ -44,12 +44,12 @@
4444
<argument name="productAttributeCode" value="weight"/>
4545
</actionGroup>
4646
<!-- Change attribute property: Use in Search >Yes -->
47-
<actionGroup ref="AdminMakeProductAttributeSearchableOrUnsearchableInAQuickSearchActionGroup" stepKey="makeAttributeSearchableInAQuickSearch"/>
47+
<actionGroup ref="AdminSetUseInSearchValueForProductAttributeActionGroup" stepKey="makeAttributeSearchableInAQuickSearch"/>
4848
<actionGroup ref="saveProductAttribute" stepKey="saveAttribute"/>
4949
<!-- Step 3 -->
50-
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
50+
<actionGroup ref="CliRunReindexUsingCronJobsActionGroup" stepKey="reindexInvalidatedIndices"/>
5151
<!-- Step 4 -->
52-
<magentoCLI command="cache:clean" stepKey="cleanCache"/>
52+
<magentoCLI command="cache:clean config full_page" stepKey="cleanInvalidatedCaches"/>
5353
<!-- Step 5 -->
5454
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToStorefront"/>
5555
<!-- Step 6 -->

0 commit comments

Comments
 (0)