Skip to content

Commit 3e3a639

Browse files
committed
MC-40376: Auto suggestion box not reappearing after clicking outside the text field
1 parent 549e54a commit 3e3a639

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

app/code/Magento/Search/Test/Mftf/ActionGroup/StoreFrontAssertDropDownSearchSuggestionActionGroup.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,10 @@
1919
<waitForElementVisible selector="{{StorefrontQuickSearchResultsSection.searchTextBox}}" stepKey="waitForQuickSearchToBeVisible"/>
2020
<fillField selector="{{StorefrontQuickSearchResultsSection.searchTextBox}}" userInput="{{searchQuery}}" stepKey="fillSearchInput"/>
2121
<waitForElementVisible selector="{{StorefrontQuickSearchSection.searchDropDownSuggestion}}" stepKey="WaitForSearchDropDownSuggestion"/>
22-
<see selector="{{StorefrontQuickSearchSection.searchDropDownSuggestion}}" stepKey="seeDropDownSuggestion"/>
2322
<click selector="//div[@class='panel wrapper']" stepKey="clickOnSomewhere"/>
2423
<dontSee selector="{{StorefrontQuickSearchSection.searchDropDownSuggestion}}" stepKey="dontSeeDropDownSuggestion"/>
2524
<click selector="{{StorefrontQuickSearchSection.searchPhrase}}" stepKey="clickOnSearchPhrase"/>
2625
<pressKey selector="{{StorefrontQuickSearchSection.searchPhrase}}" parameterArray="[\Facebook\WebDriver\WebDriverKeys::DOWN]" stepKey="pressDown"/>
27-
<see selector="{{StorefrontQuickSearchSection.searchDropDownSuggestion}}" stepKey="seeDropDownSuggestionSecond"/>
26+
<waitForElementVisible selector="{{StorefrontQuickSearchSection.searchDropDownSuggestion}}" stepKey="WaitForSearchDropDownSuggestionSecond"/>
2827
</actionGroup>
2928
</actionGroups>

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

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
</annotations>
2020

2121
<before>
22-
<!-- Login as admin -->
23-
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
24-
2522
<!-- Create Simple Product -->
2623
<createData entity="defaultSimpleProduct" stepKey="simpleProduct"/>
2724

25+
<!-- Login as admin -->
26+
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
27+
2828
<!-- Perform reindex and flush cache -->
2929
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
3030
<argument name="indices" value=""/>
@@ -42,24 +42,23 @@
4242

4343
<!-- Filter the search term -->
4444
<actionGroup ref="AdminSearchTermFilterBySearchQueryActionGroup" stepKey="filterByThirdSearchQuery">
45-
<argument name="searchQuery" value="$$simpleProduct.name$$"/>
45+
<argument name="searchQuery" value="$simpleProduct.name$"/>
4646
</actionGroup>
4747
<!-- Delete created below search terms -->
4848
<actionGroup ref="AdminDeleteSearchTermActionGroup" stepKey="deleteSearchTerms"/>
49-
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
5049
</after>
5150

5251
<!-- Go to storefront home page -->
5352
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="openStoreFrontHomePage"/>
5453

5554
<!-- Storefront quick search by product name -->
5655
<actionGroup ref="StorefrontCheckQuickSearchStringActionGroup" stepKey="quickSearchByProductName">
57-
<argument name="phrase" value="$$simpleProduct.name$$"/>
56+
<argument name="phrase" value="$simpleProduct.name$"/>
5857
</actionGroup>
5958

6059
<!-- Verify search suggestions and select the suggestion from dropdown options -->
6160
<actionGroup ref="StoreFrontAssertDropDownSearchSuggestionActionGroup" stepKey="seeDropDownSearchSuggestion">
62-
<argument name="searchQuery" value="$$simpleProduct.name$$"/>
61+
<argument name="searchQuery" value="$simpleProduct.name$"/>
6362
</actionGroup>
6463
</test>
6564
</tests>

0 commit comments

Comments
 (0)