From ac8aa6b1f3284db66cece5e7338f22c45ce8fb22 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Wed, 20 Oct 2021 07:55:44 +0000 Subject: Change the "Edit" label in the context menu to "Bulk Edit" when multiple issues are selected (#35770). Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@21248 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/context_menus_controller_test.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'test/functional/context_menus_controller_test.rb') diff --git a/test/functional/context_menus_controller_test.rb b/test/functional/context_menus_controller_test.rb index ccbc4dfba..691c83b35 100644 --- a/test/functional/context_menus_controller_test.rb +++ b/test/functional/context_menus_controller_test.rb @@ -70,7 +70,7 @@ class ContextMenusControllerTest < Redmine::ControllerTest } assert_response :success - assert_select 'a.icon-edit[href=?]', '/issues/bulk_edit?ids%5B%5D=1&ids%5B%5D=2', :text => 'Edit' + assert_select 'a.icon-edit[href=?]', '/issues/bulk_edit?ids%5B%5D=1&ids%5B%5D=2', :text => 'Bulk edit' assert_select 'a.icon-copy[href=?]', '/issues/bulk_edit?copy=1&ids%5B%5D=1&ids%5B%5D=2', :text => 'Copy' assert_select 'a.icon-del[href=?]', '/issues?ids%5B%5D=1&ids%5B%5D=2', :text => 'Delete' @@ -112,7 +112,7 @@ class ContextMenusControllerTest < Redmine::ControllerTest ids = [1, 2].map {|i| "ids%5B%5D=#{i}"}.join('&') - assert_select 'a.icon-edit[href=?]', "/issues/bulk_edit?#{ids}", :text => 'Edit' + assert_select 'a.icon-edit[href=?]', "/issues/bulk_edit?#{ids}", :text => 'Bulk edit' # issue_id: '1,2', set_filter: 1, status_id: '*' assert_select 'a.icon-copy-link[data-clipboard-text=?]', "http://test.host/projects/ecookbook/issues?issue_id=1%2C2&set_filter=1&status_id=%2A", :text => 'Copy link' assert_select 'a.icon-copy[href=?]', "/issues/bulk_edit?copy=1&#{ids}", :text => 'Copy' @@ -135,7 +135,7 @@ class ContextMenusControllerTest < Redmine::ControllerTest ids = [1, 2, 6].map {|i| "ids%5B%5D=#{i}"}.join('&') - assert_select 'a.icon-edit[href=?]', "/issues/bulk_edit?#{ids}", :text => 'Edit' + assert_select 'a.icon-edit[href=?]', "/issues/bulk_edit?#{ids}", :text => 'Bulk edit' # issue_id: '1,2,6', set_filter: 1, status_id: '*' assert_select 'a.icon-copy-link[data-clipboard-text=?]', "http://test.host/issues?issue_id=1%2C2%2C6&set_filter=1&status_id=%2A", :text => 'Copy link' assert_select 'a.icon-del[href=?]', "/issues?#{ids}", :text => 'Delete' @@ -402,7 +402,7 @@ class ContextMenusControllerTest < Redmine::ControllerTest ) assert_response :success - assert_select 'a:not(.disabled)', :text => 'Edit' + assert_select 'a:not(.disabled)', :text => 'Bulk edit' end def test_context_menu_for_one_time_entry @@ -454,7 +454,7 @@ class ContextMenusControllerTest < Redmine::ControllerTest ) assert_response :success - assert_select 'a:not(.disabled)', :text => 'Edit' + assert_select 'a:not(.disabled)', :text => 'Bulk edit' end def test_time_entries_context_menu_without_edit_permission @@ -468,6 +468,6 @@ class ContextMenusControllerTest < Redmine::ControllerTest ) assert_response :success - assert_select 'a.disabled', :text => 'Edit' + assert_select 'a.disabled', :text => 'Bulk edit' end end -- cgit v1.2.3