diff --git a/spec/feature_steps/forecast_steps.rb b/spec/feature_steps/forecast_steps.rb index f61113dc..94f2dccd 100644 --- a/spec/feature_steps/forecast_steps.rb +++ b/spec/feature_steps/forecast_steps.rb @@ -57,9 +57,9 @@ def and_i_switch_to_the_tab_for_day_after_tomorrow def switch_to_tab_for(day) case day when :tomorrow - find(".tab.tomorrow a").click + find(".tab.tomorrow a").trigger("click") when :day_after_tomorrow - find(".tab.day_after_tomorrow a").click + find(".tab.day_after_tomorrow a").trigger("click") else raise "day: #{day} not expected" end diff --git a/spec/features/visitors/view_styled_forecasts_spec.rb b/spec/features/visitors/view_styled_forecasts_spec.rb index fc6c0fb6..3d0fdee8 100644 --- a/spec/features/visitors/view_styled_forecasts_spec.rb +++ b/spec/features/visitors/view_styled_forecasts_spec.rb @@ -58,8 +58,8 @@ visit root_path when_i_select_view_forecasts_v2 - and_i_switch_to_the_tab_for_day_after_tomorrow + and_i_switch_to_the_tab_for_day_after_tomorrow then_i_see_that_the_day_after_tomorrow_tab_is_active and_i_see_predicted_uv_level_for_day_after_tomorrow and_i_see_predicted_pollen_level_for_day_after_tomorrow