diff --git a/app/components/admin/site_customization/images/table_actions_component.html.erb b/app/components/admin/site_customization/images/table_actions_component.html.erb
index 3957d23ad..a24680d57 100644
--- a/app/components/admin/site_customization/images/table_actions_component.html.erb
+++ b/app/components/admin/site_customization/images/table_actions_component.html.erb
@@ -2,7 +2,7 @@
<%= form_for([:admin, image], html: { id: "edit_#{dom_id(image)}" }) do |f| %>
<%= image_tag image.image if image.persisted_attachment? %>
- <%= f.file_field :image, label: false %>
+ <%= f.file_field :image, label: false, "aria-label": image.name %>
<%= f.submit(t("admin.site_customization.images.index.update"), class: "button hollow") %>
diff --git a/spec/system/admin/site_customization/images_spec.rb b/spec/system/admin/site_customization/images_spec.rb
index 801e0576a..3ed98ffa6 100644
--- a/spec/system/admin/site_customization/images_spec.rb
+++ b/spec/system/admin/site_customization/images_spec.rb
@@ -10,7 +10,7 @@ describe "Admin custom images", :admin do
end
within("tr#image_logo_header") do
- attach_file "site_customization_image_image", file_fixture("logo_header.png")
+ attach_file "logo_header", file_fixture("logo_header.png")
click_button "Update"
end
@@ -22,7 +22,7 @@ describe "Admin custom images", :admin do
visit admin_site_customization_images_path
within("tr#image_map") do
- attach_file "site_customization_image_image", file_fixture("custom_map.jpg")
+ attach_file "map", file_fixture("custom_map.jpg")
click_button "Update"
end
@@ -38,7 +38,7 @@ describe "Admin custom images", :admin do
visit admin_site_customization_images_path
within("tr#image_map") do
- attach_file "site_customization_image_image", file_fixture("custom_map.jpg")
+ attach_file "map", file_fixture("custom_map.jpg")
click_button "Update"
end
@@ -78,7 +78,7 @@ describe "Admin custom images", :admin do
visit admin_site_customization_images_path
within("tr#image_logo_email") do
- attach_file "site_customization_image_image", file_fixture("logo_email_custom.png")
+ attach_file "logo_email", file_fixture("logo_email_custom.png")
click_button "Update"
end
@@ -93,7 +93,7 @@ describe "Admin custom images", :admin do
visit admin_site_customization_images_path
within("tr#image_social_media_icon") do
- attach_file "site_customization_image_image", file_fixture("logo_header.png")
+ attach_file "social_media_icon", file_fixture("logo_header.png")
click_button "Update"
end
@@ -105,7 +105,7 @@ describe "Admin custom images", :admin do
visit admin_site_customization_images_path
within("tr#image_social_media_icon") do
- attach_file "site_customization_image_image", file_fixture("social_media_icon.png")
+ attach_file "social_media_icon", file_fixture("social_media_icon.png")
click_button "Update"
end