Skip to content

Commit

Permalink
Fix Cuprite error
Browse files Browse the repository at this point in the history
The integration tests in CI were complaining about overlapping elements on a button because of he icon on the new air pollution tab. It doesn’t matter that it overlaps, so I’ve introduced this alternative syntax to fix the issue.
  • Loading branch information
patrickjfl committed Nov 5, 2024
1 parent 2d0c48a commit 16567ec
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 16567ec

Please sign in to comment.