From 9c6573f39f805c163ad0b37c5a749e8b50dfcc19 Mon Sep 17 00:00:00 2001 From: Patrick Fleming Date: Fri, 1 Nov 2024 12:17:05 +0000 Subject: [PATCH] Fix Cuprite error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The integration tests in CI are complaining about overlapping elements on a button - I think this is the icon on the new air pollution tab. It doesn’t matter that it overlaps, so I’m hoping that this alternative syntax fixes the issue. --- spec/feature_steps/forecast_steps.rb | 4 ++-- spec/features/visitors/view_styled_forecasts_spec.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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