Steps to replicate the issue (include links if applicable):
- Go to https://test.wikipedia.org/wiki/Main_Page
- Focus search
- Type dsassaassasasasaas into search
- Delete text
- Unfocus
- Focus search again
What happens?:
Search for pages footer still shows and empty search does not
What should have happened instead?:
Empty search suggestions should show
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
Requirement
Empty search suggestions should reappear when a user deletes a query and refocuses the search input.
BDD
Feature: Empty search suggestions visibility
Scenario: Re-focusing an empty search input
Given I am on the test wiki main page And I have typed a search term that yields no results And I delete the search term completely When I refocus the search input Then empty search suggestions should appear again
Test Steps
Test Case 1: Empty search suggestions reappear after clearing input
- Visit https://test.wikipedia.org/wiki/Main_Page
- Focus the search bar.
- Type dsassaassasasasaas (or any term that returns no results).
- Delete the entire input using backspace.
- Click outside the search bar to unfocus it.
- Focus the search bar again.
- AC1: Empty search suggestions are shown once the input is empty and focused again.
QA Results - Beta
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T395385#10927021 |
QA Results - Prod
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T395385#10942964 |


