From 7803ad638d3f9cb79adc08c7d0cbc05a8aa0feed Mon Sep 17 00:00:00 2001 From: Mir Bhatia Date: Wed, 29 Apr 2026 17:38:34 +0200 Subject: [PATCH] Update select panel button label --- app/components/workflows/status_matrix_form_component.html.erb | 2 +- spec/features/workflows/edit_multi_role_spec.rb | 2 +- spec/support/workflows/edit_helpers.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/components/workflows/status_matrix_form_component.html.erb b/app/components/workflows/status_matrix_form_component.html.erb index 68ca0b219a1..a4fca03b305 100644 --- a/app/components/workflows/status_matrix_form_component.html.erb +++ b/app/components/workflows/status_matrix_form_component.html.erb @@ -63,7 +63,7 @@ See COPYRIGHT and LICENSE files for more details. scheme: :primary, data: { action: "click->admin--workflow-role-select#apply" } ) - ) { t(:button_save) } + ) { t(:button_apply) } end end end diff --git a/spec/features/workflows/edit_multi_role_spec.rb b/spec/features/workflows/edit_multi_role_spec.rb index 19f7871aa82..e3b58d9aa3a 100644 --- a/spec/features/workflows/edit_multi_role_spec.rb +++ b/spec/features/workflows/edit_multi_role_spec.rb @@ -272,7 +272,7 @@ RSpec.describe "Workflow edit with multiple roles", :js do click_button "2 roles selected" find("[data-item-id='#{role.id}']").click find("[data-item-id='#{role2.id}']").click - within("select-panel") { click_button "Save" } + within("select-panel") { click_button "Apply" } expect(page).to have_no_text("2 roles selected") expect(page).to have_button(role.name) diff --git a/spec/support/workflows/edit_helpers.rb b/spec/support/workflows/edit_helpers.rb index 7b30cd14bc4..7156557575e 100644 --- a/spec/support/workflows/edit_helpers.rb +++ b/spec/support/workflows/edit_helpers.rb @@ -45,7 +45,7 @@ module Workflows click_button from_role.name find("[data-item-id='#{to_role.id}']").click find("[data-item-id='#{from_role.id}']").click - within("select-panel") { click_button "Save" } + within("select-panel") { click_button "Apply" } end def add_status_via_dialog(status)