frontend icon indicating copy to clipboard operation
frontend copied to clipboard

Weather widget search doesn't show all results

Open TBonnin opened this issue 8 years ago • 2 comments

ISSUE

Weather widget search only shows 5 results. Therefore all results beyond the fifth one would never be visible

Steps to Reproduce

  • Go to the homepage https://www.theguardian.com/uk
  • Enter St. John's in the weather widget

Actual Results (include screenshots)

St. John's, Newfoundland doesn't appear. Even though it is properly returned by the json endpoint.

Expected Results (include screenshots)

Weather widget search shows all returned results

TBonnin avatar Jun 28 '16 12:06 TBonnin

Tried replicating the issue, while "Newfoundland" is part of the result now, the main issue of only 5 out of 7 results being shown remains.

API json response is as attached

screen shot 2018-07-30 at 9 53 15 am

With the respective test screenshot

screen shot 2018-07-30 at 10 56 40 am

And its respective uilicious.com test script is below.

// Loading the guardian website, 
I.goTo("https://www.theguardian.com/international");

// Unfortunately the weather app takes 
// a fair bit of time to load, this waits for it
//
// As such, There is a chance of this step failing, along with 
// all other steps, if it takes more then 15 seconds to load
I.see(".js-weather");

// Lets fill up the location
I.fill("enter location", "St. John's");

// Lets validate the 6 possible result
//
// + St. John's / Antigua and Barbuda
// + St. John's, Newfoundland / Canada
// + St. John's / United Kingdom
// + St. John's / Jamaica
// + St. John's Park / Canada
// + St. John's Bay / Canada
// + St. John's, Manitoba / Canada
//--------------------------------------

I.see("Antigua and Barbuda"); 
I.see("St. John's, Newfoundland"); 
I.see("United Kingdom"); 
I.see("Jamaica"); 
I.see("St. John's Park"); 
I.see("St. John's Bay"); 
I.see("St. John's, Manitoba"); 

PicoCreator avatar Jul 30 '18 03:07 PicoCreator

Hi @PicoCreator Thanks so much for this test case.

AWare avatar Aug 03 '18 09:08 AWare