diff --git a/app/views/budgets/groups/show.html.erb b/app/views/budgets/groups/show.html.erb index f0687630a..5fca4acd6 100644 --- a/app/views/budgets/groups/show.html.erb +++ b/app/views/budgets/groups/show.html.erb @@ -23,6 +23,6 @@
- <%= image_tag(image_path_for("map.jpg")) %> + <%= image_tag(image_path_for("map.jpg"), alt: t("shared.tags_cloud.districts_list")) %>
diff --git a/app/views/proposals/map.html.erb b/app/views/proposals/map.html.erb index dde4a610f..261cd49ef 100644 --- a/app/views/proposals/map.html.erb +++ b/app/views/proposals/map.html.erb @@ -13,7 +13,7 @@
- <%= image_tag(image_path_for("map.jpg"), usemap: "#map") %> + <%= image_tag(image_path_for("map.jpg"), alt: t("shared.tags_cloud.districts_list"), usemap: "#map") %>
diff --git a/spec/system/admin/site_customization/images_spec.rb b/spec/system/admin/site_customization/images_spec.rb index 3ed98ffa6..10ceb3149 100644 --- a/spec/system/admin/site_customization/images_spec.rb +++ b/spec/system/admin/site_customization/images_spec.rb @@ -45,19 +45,19 @@ describe "Admin custom images", :admin do visit proposals_path within("#map") do - expect(page).to have_css("img[src*='custom_map.jpg']") + expect(page).to have_css("img[src*='custom_map.jpg'][alt='Districts list']") end visit map_proposals_path within(".show-for-medium") do - expect(page).to have_css("img[src*='custom_map.jpg']") + expect(page).to have_css("img[src*='custom_map.jpg'][alt='Districts list']") end visit budget_group_path(budget, group) within(".show-for-medium") do - expect(page).to have_css("img[src*='custom_map.jpg']") + expect(page).to have_css("img[src*='custom_map.jpg'][alt='Districts list']") end end