summaryrefslogtreecommitdiffstats
path: root/test/functional
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-09-24 16:07:28 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-09-24 16:07:28 +0000
commit2c9f822be9613a86ca69d2afcadd724ac61b86a0 (patch)
tree9cfcd15454bab5b65aba432e969ab74cf358a2fc /test/functional
parentf1e86fb99d2860a48cc8a74da30f40f0fa34e69a (diff)
downloadredmine-2c9f822be9613a86ca69d2afcadd724ac61b86a0.tar.gz
redmine-2c9f822be9613a86ca69d2afcadd724ac61b86a0.zip
add functional test "bulk copy should show follow button when project is selected"
git-svn-id: http://svn.redmine.org/redmine/trunk@20078 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/issues_controller_test.rb22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb
index 80e9e7849..edf973e6a 100644
--- a/test/functional/issues_controller_test.rb
+++ b/test/functional/issues_controller_test.rb
@@ -7243,6 +7243,28 @@ class IssuesControllerTest < Redmine::ControllerTest
end
end
+ test "bulk copy should show follow button when project is selected" do
+ @request.session[:user_id] = 2
+ post(
+ :bulk_edit,
+ :params => {
+ :ids => [1, 3],
+ :issue => {
+ :project_id => 2,
+ },
+ :copy => '1',
+ }
+ )
+ assert_response :success
+
+ assert_select 'form#bulk_edit_form[action=?]', '/issues/bulk_update' do
+ assert_select 'input[type=submit]', 2 do
+ assert_select '[name=?]', 'commit', 1
+ assert_select '[name=?]', 'follow', 1
+ end
+ end
+ end
+
def test_get_bulk_copy_without_add_issues_permission_should_not_propose_current_project_as_target
user = setup_user_with_copy_but_not_add_permission
@request.session[:user_id] = user.id