fix: Documents admin page: "+Type" button has a wrong label ("+Add") (WP #69498)

This commit is contained in:
Tomas Hykel
2026-06-12 13:17:09 +00:00
parent 759bb11f35
commit 4ecd255b59
3 changed files with 5 additions and 3 deletions
@@ -37,12 +37,12 @@
subheader.with_action_button(
scheme: :primary,
leading_icon: :plus,
label: t(:button_add),
label: t("documents.button_add_type"),
tag: :a,
href: helpers.url_for(action: :new),
test_selector: "add-document-type-button"
) do
I18n.t(:button_add)
I18n.t("documents.button_add_type")
end
end
end
+2
View File
@@ -58,6 +58,8 @@ en:
enumeration_doc_categories: "Document categories"
documents:
button_add_type: "Type"
page_header:
heading: "All documents"
action_menu:
@@ -51,7 +51,7 @@ RSpec.describe "Document types admin", :js do
end
within_test_selector("admin-document-types-subheader") do
click_on "Add"
click_on "Type"
end
fill_in "Name", with: "Documentation"