diff options
author | Go MAEDA <maeda@farend.jp> | 2022-01-05 00:05:45 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2022-01-05 00:05:45 +0000 |
commit | bcdb13f1fd98e6098e3479d4734bd2110e107fe2 (patch) | |
tree | a52d39012b9e1fdebad64f32b298f7b70eab8056 /test/functional/context_menus_controller_test.rb | |
parent | 2140b7c5a533b3125a9f31233432e4f600b6dee2 (diff) | |
download | redmine-bcdb13f1fd98e6098e3479d4734bd2110e107fe2.tar.gz redmine-bcdb13f1fd98e6098e3479d4734bd2110e107fe2.zip |
Change Delete button name to Delete issue (#31278).
Contributed by Frederico Camara.
git-svn-id: http://svn.redmine.org/redmine/trunk@21346 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 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/functional/context_menus_controller_test.rb b/test/functional/context_menus_controller_test.rb index 1e533e9f6..7d83701c2 100644 --- a/test/functional/context_menus_controller_test.rb +++ b/test/functional/context_menus_controller_test.rb @@ -49,7 +49,7 @@ class ContextMenusControllerTest < Redmine::ControllerTest assert_select 'a.icon-edit[href=?]', '/issues/1/edit', :text => 'Edit' assert_select 'a.icon-copy-link[data-clipboard-text=?]', 'http://test.host/issues/1', :text => 'Copy link' assert_select 'a.icon-copy[href=?]', '/projects/ecookbook/issues/1/copy', :text => 'Copy' - assert_select 'a.icon-del[href=?]', '/issues?ids%5B%5D=1', :text => 'Delete' + assert_select 'a.icon-del[href=?]', '/issues?ids%5B%5D=1', :text => 'Delete issue' # Statuses assert_select 'a[href=?][data-method="patch"]', '/issues/1?ids%5B%5D=1&issue%5Bstatus_id%5D=5', :text => 'Closed' @@ -72,7 +72,7 @@ class ContextMenusControllerTest < Redmine::ControllerTest 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' + assert_select 'a.icon-del[href=?]', '/issues?ids%5B%5D=1&ids%5B%5D=2', :text => 'Delete issues' # Statuses assert_select 'a[href=?][data-method="patch"]', '/issues/bulk_update?ids%5B%5D=1&ids%5B%5D=2&issue%5Bstatus_id%5D=5', :text => 'Closed' @@ -96,7 +96,7 @@ class ContextMenusControllerTest < Redmine::ControllerTest ) assert_response :success - assert_select 'a.icon-del.disabled[href="#"]', :text => 'Delete' + assert_select 'a.icon-del.disabled[href="#"]', :text => 'Delete issue' end end @@ -116,7 +116,7 @@ class ContextMenusControllerTest < Redmine::ControllerTest # 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' - assert_select 'a.icon-del[href=?]', "/issues?#{ids}", :text => 'Delete' + assert_select 'a.icon-del[href=?]', "/issues?#{ids}", :text => 'Delete issues' assert_select 'a[href=?]', "/issues/bulk_update?#{ids}&issue%5Bstatus_id%5D=5", :text => 'Closed' assert_select 'a[href=?]', "/issues/bulk_update?#{ids}&issue%5Bpriority_id%5D=8", :text => 'Immediate' @@ -138,7 +138,7 @@ class ContextMenusControllerTest < Redmine::ControllerTest 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' + assert_select 'a.icon-del[href=?]', "/issues?#{ids}", :text => 'Delete issues' assert_select 'a[href=?]', "/issues/bulk_update?#{ids}&issue%5Bstatus_id%5D=5", :text => 'Closed' assert_select 'a[href=?]', "/issues/bulk_update?#{ids}&issue%5Bpriority_id%5D=8", :text => 'Immediate' |