diff options
author | Go MAEDA <maeda@farend.jp> | 2021-10-20 07:55:44 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2021-10-20 07:55:44 +0000 |
commit | ac8aa6b1f3284db66cece5e7338f22c45ce8fb22 (patch) | |
tree | e482614d8e91e1207b8b45b45757dace3aeec25d /test/functional/context_menus_controller_test.rb | |
parent | 8075884bc48deb3b7af94799d6eba943e999dcb2 (diff) | |
download | redmine-ac8aa6b1f3284db66cece5e7338f22c45ce8fb22.tar.gz redmine-ac8aa6b1f3284db66cece5e7338f22c45ce8fb22.zip |
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
Diffstat (limited to 'test/functional/context_menus_controller_test.rb')
-rw-r--r-- | test/functional/context_menus_controller_test.rb | 12 |
1 files changed, 6 insertions, 6 deletions
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 |