Skip to content

Commit eee9fb8

Browse files
committed
ACP2E-1854: Attribute that is not searchable but used in Search Results works incorrectly
- adjusted existing tests
1 parent 9852ef1 commit eee9fb8

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

app/code/Magento/Swatches/Test/Mftf/ActionGroup/AddTextSwatchToProductWithTwoOptionsActionGroup.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
<!-- Set Use In Layered Navigation -->
4040
<scrollToTopOfPage stepKey="scrollToTopOfPage"/>
4141
<click selector="{{StorefrontPropertiesSection.StoreFrontPropertiesTab}}" stepKey="goToStorefrontProperties"/>
42+
<selectOption selector="{{AdminNewAttributePanel.useInSearch}}" userInput="Yes" stepKey="selectYesForUseInSearch"/>
4243
<selectOption selector="{{AttributePropertiesSection.useInLayeredNavigation}}" userInput="1" stepKey="selectUseInLayeredNavigation"/>
4344
<selectOption selector="{{AdvancedAttributePropertiesSection.UseInProductListing}}" userInput="{{usedInProductListing}}" stepKey="useInProductListing"/>
4445
<click selector="{{AttributePropertiesSection.SaveAndEdit}}" stepKey="clickSave"/>

app/code/Magento/Swatches/Test/Mftf/ActionGroup/AddVisualSwatchActionGroup.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
<scrollToTopOfPage stepKey="scrollToTop2"/>
5151
<click selector="{{StorefrontPropertiesSection.StoreFrontPropertiesTab}}" stepKey="goToStorefrontProperties"/>
5252
<selectOption selector="{{AttributePropertiesSection.useInLayeredNavigation}}" userInput="1" stepKey="selectUseInLayeredNavigation"/>
53+
<selectOption selector="{{AdminNewAttributePanel.useInSearch}}" userInput="Yes" stepKey="selectYesForUseInSearch"/>
5354
<!-- Save the new product attribute -->
5455
<click selector="{{AttributePropertiesSection.Save}}" stepKey="clickSaveAndEdit"/>
5556
<wait stepKey="waitToLoad" time="3"/>

app/code/Magento/Swatches/Test/Mftf/Test/AdminSimpleProductwithTextandVisualSwatchTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
<argument name="phrase" value="visualSwatchOption2"/>
137137
</actionGroup>
138138
<waitForText selector="{{StorefrontCategoryMainSection.productName}}" userInput="{{DownloadableProduct.name}}" stepKey="seeVisualSwatchAttributeProductName"/>
139-
<!--Verfiy the visual swatch attribute product does not appears in search option with option one -->
139+
<!--Verfiy the visual swatch attribute product does not appear in search option with option one -->
140140
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToStorefrontPage3"/>
141141
<actionGroup ref="StorefrontCheckQuickSearchStringActionGroup" stepKey="quickSearchForOptionOne1">
142142
<argument name="phrase" value="visualSwatchOption1"/>

0 commit comments

Comments
 (0)