Skip to content

Commit

Permalink
Fix Cuprite error
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
patrickjfl committed Nov 1, 2024
1 parent 48c863a commit 9c6573f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions spec/feature_steps/forecast_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/features/visitors/view_styled_forecasts_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9c6573f

Please sign in to comment.