frontend
frontend copied to clipboard
Weather widget search doesn't show all results
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
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
With the respective test screenshot
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");
Hi @PicoCreator Thanks so much for this test case.