← Shopping

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

  1. Navigate to ${BASE_URL}/sandbox/s-03/
  2. Type "wireless ear" in the search box (do not press Enter)
  3. Click the suggestion "wireless earbuds in Electronics"
  4. 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)".

Open the challenge page