diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-09-21 13:04:33 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-09-21 13:04:33 +0000 |
commit | 4fdac0655ab808955abdbf69ae31ed337f8c7738 (patch) | |
tree | 6b78f699d020b3b6b1198cb08367b474e9aac323 /test | |
parent | 97ffc818e826764d019204587aa46d46a4b1f2ae (diff) | |
download | redmine-4fdac0655ab808955abdbf69ae31ed337f8c7738.tar.gz redmine-4fdac0655ab808955abdbf69ae31ed337f8c7738.zip |
add functional test "bulk_edit should hide follow button when project is not changed"
git-svn-id: http://svn.redmine.org/redmine/trunk@20065 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/issues_controller_test.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index 1d16b8c44..80e9e7849 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -6456,6 +6456,27 @@ class IssuesControllerTest < Redmine::ControllerTest end end + test "bulk_edit should hide follow button when project is not changed" do + @request.session[:user_id] = 2 + post( + :bulk_edit, + :params => { + :ids => [1, 3], + :issue => { + :project_id => "", + } + } + ) + assert_response :success + + assert_select 'form#bulk_edit_form[action=?]', '/issues/bulk_update' do + assert_select 'input[type=submit]', 1 do + assert_select '[name=?]', 'commit', 1 + assert_select '[name=?]', 'follow', 0 + end + end + end + def test_get_bulk_edit_on_different_projects @request.session[:user_id] = 2 get(:bulk_edit, :params => {:ids => [1, 2, 6]}) |