Skip to content

Commit 344fd05

Browse files
committed
MC-31467: Create MFTF test to search weight attribute with ElasticSearch
1 parent 1e318d8 commit 344fd05

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/code/Magento/Catalog/Test/Mftf/ActionGroup/AdminSetUseInSearchValueForProductAttributeActionGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818
<scrollToTopOfPage stepKey="scrollToTopOfPage"/>
1919
<click selector="{{StorefrontPropertiesSection.StoreFrontPropertiesTab}}" stepKey="clickStorefrontPropertiesTab"/>
2020
<waitForElementVisible selector="{{AdvancedAttributePropertiesSection.UseInSearch}}" stepKey="waitForUseInSearchElementVisible"/>
21-
<selectOption selector="{{AdvancedAttributePropertiesSection.UseInSearch}}" userInput="{{useInSearchValue}}" stepKey="selectYesInUseInSearch"/>
21+
<selectOption selector="{{AdvancedAttributePropertiesSection.UseInSearch}}" userInput="{{useInSearchValue}}" stepKey="setUseInSearchValue"/>
2222
</actionGroup>
2323
</actionGroups>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,18 @@
3434
<actionGroup ref="AdminSetUseInSearchValueForProductAttributeActionGroup" stepKey="makeAttributeUnsearchableInAQuickSearch">
3535
<argument name="useInSearchValue" value="No"/>
3636
</actionGroup>
37-
<actionGroup ref="saveProductAttribute" stepKey="saveAttributeChanges"/>
37+
<actionGroup ref="SaveProductAttributeActionGroup" stepKey="saveAttributeChanges"/>
3838
<actionGroup ref="ClearFiltersAdminDataGridActionGroup" stepKey="clearFilter"/>
3939
<!-- Logout from admin -->
40-
<actionGroup ref="logout" stepKey="logout"/>
40+
<actionGroup ref="logout" stepKey="logoutFromAdmin"/>
4141
</after>
4242
<!-- Step 2 -->
4343
<actionGroup ref="OpenProductAttributeFromSearchResultInGridActionGroup" stepKey="openWeightProductAttribute">
4444
<argument name="productAttributeCode" value="weight"/>
4545
</actionGroup>
4646
<!-- Change attribute property: Use in Search >Yes -->
4747
<actionGroup ref="AdminSetUseInSearchValueForProductAttributeActionGroup" stepKey="makeAttributeSearchableInAQuickSearch"/>
48-
<actionGroup ref="saveProductAttribute" stepKey="saveAttribute"/>
48+
<actionGroup ref="SaveProductAttributeActionGroup" stepKey="saveAttribute"/>
4949
<!-- Step 3 -->
5050
<actionGroup ref="CliRunReindexUsingCronJobsActionGroup" stepKey="reindexInvalidatedIndices"/>
5151
<!-- Step 4 -->

0 commit comments

Comments
 (0)