public void Entering_invalid_city_name_should_display_error_message() { // Act var page = new WeatherPage(_app) .EnterSearchQuery("InvalidCity") .TapSearchButton(); // Assert page.HasElementVisible(c => c.Marked("Weather for city InvalidCity not found.")); }
public void Entering_valid_city_name_should_show_progress_bar() { // Act var page = new WeatherPage(_app) .EnterSearchQuery("London") .TapSearchButton(); // Assert page.HasElementVisible(page.ProgressBar); }
public void Entering_valid_city_name_should_display_weather_info(string query) { // Act var page = new WeatherPage(_app) .EnterSearchQuery(query) .TapSearchButton(); // Assert page.HasElementVisible(c => c.Marked(query)); }