Crawl Weather Using Cypress

1 · Gleb Bahmutov · Feb. 25, 2023, 3:38 p.m.
Imagine I ask you to do the following exercise using Cypress:Pick 10 random US citiesFor each city:Check the temperature forecast for the next dayIf the temperature is between 17C and 20C stopOtherwise go to the next cityIf there are no cities with the ideal temperature forecast, log a messageSo this is not a real end-to-end test, but a fun application of Cypress, just like crawling web pages, or playing Wordle using Cypress. Let's see how we can do this.Pick 10 random US citiesFirst, let's pick...