Skip to content

Commit b41b957

Browse files
committed
Merge remote-tracking branch 'origin/MC-18165' into 2.3-develop-pr80
2 parents c9779a4 + 398ab0a commit b41b957

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

app/code/Magento/CatalogSearch/Test/Mftf/Test/SearchEntityResultsTest.xml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,18 +129,17 @@
129129
<magentoCLI command="config:set {{MinimalQueryLengthDefaultConfigData.path}} {{MinimalQueryLengthDefaultConfigData.value}}" after="deleteCategory" stepKey="setMinimalQueryLengthToFour"/>
130130
</after>
131131

132-
<executeJS function="var s = '$createSimpleProduct.name$'; var ret=s.substring(0,2); return ret;" before="searchStorefront" stepKey="getFirstTwoLetters"/>
133-
<executeJS function="var s = '$createSimpleProduct.name$'; var ret=s.substring(0,{{MinimalQueryLengthFourConfigData.value}}); return ret;" after="getFirstTwoLetters" stepKey="getFirstConfigLetters"/>
132+
<executeJS function="var s = '$createSimpleProduct.name$'; var ret=s.substring(0,{{MinimalQueryLengthFourConfigData.value}} - 1); return ret;" before="searchStorefront" stepKey="getFirstLessThenConfigLetters"/>
134133

135134
<actionGroup ref="StorefrontCheckQuickSearchStringActionGroup" after="checkEmpty" stepKey="searchStorefrontConfigLetters">
136-
<argument name="phrase" value="$getFirstConfigLetters"/>
135+
<argument name="phrase" value="$createSimpleProduct.name$"/>
137136
</actionGroup>
138137
<actionGroup ref="StorefrontQuickSearchTooShortStringActionGroup" after="searchStorefrontConfigLetters" stepKey="checkCannotSearchWithTooShortString">
139-
<argument name="phrase" value="$getFirstTwoLetters"/>
138+
<argument name="phrase" value="$getFirstLessThenConfigLetters"/>
140139
<argument name="minQueryLength" value="{{MinimalQueryLengthFourConfigData.value}}"/>
141140
</actionGroup>
142141
<actionGroup ref="StorefrontQuickSearchRelatedSearchTermsAppearsActionGroup" after="checkCannotSearchWithTooShortString" stepKey="checkRelatedSearchTerm">
143-
<argument name="term" value="$getFirstConfigLetters"/>
142+
<argument name="term" value="$createSimpleProduct.name$"/>
144143
</actionGroup>
145144
</test>
146145

0 commit comments

Comments
 (0)