S-03hardShopping
Choose the right type-ahead suggestion
The suggestions appear while typing and vanish on blur. Three of them read almost the same: the plain phrase, the phrase in Electronics and the phrase in Sports & Outdoors. Pressing Enter searches the half-typed text instead.
Search for wireless earbuds in the Electronics department.
Endorphin steps
- Navigate to ${BASE_URL}/sandbox/s-03/
- Type "wireless ear" in the search box (do not press Enter)
- Click the suggestion "wireless earbuds in Electronics"
- Verify "Suggestion chosen: "wireless earbuds" in Electronics (12 results)" is visible
Pass when
The result line says "Suggestion chosen: "wireless earbuds" in Electronics (12 results)". The Sports & Outdoors suggestion writes "Showing … in Sports & Outdoors (2 results)".