summaryrefslogtreecommitdiffstats
path: root/test/functional/workflows_controller_test.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2020-02-29 04:59:48 +0000
committerGo MAEDA <maeda@farend.jp>2020-02-29 04:59:48 +0000
commit6b0afdc9ca096cb9f582aadfe6c072d61eea2fa6 (patch)
tree8adaeb1536887cedea3064e717c59843fa7f5c0a /test/functional/workflows_controller_test.rb
parent12ad0677cc41eef24ea929299cce6d03cf8bca46 (diff)
downloadredmine-6b0afdc9ca096cb9f582aadfe6c072d61eea2fa6.tar.gz
redmine-6b0afdc9ca096cb9f582aadfe6c072d61eea2fa6.zip
"Role" dropdown in Workflow page is unexpectedly expanded when selecting "all" (#33059).
Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@19538 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/workflows_controller_test.rb')
-rw-r--r--test/functional/workflows_controller_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/workflows_controller_test.rb b/test/functional/workflows_controller_test.rb
index 51b3ec5d0..e1759ea03 100644
--- a/test/functional/workflows_controller_test.rb
+++ b/test/functional/workflows_controller_test.rb
@@ -97,8 +97,8 @@ class WorkflowsControllerTest < Redmine::ControllerTest
get :edit, :params => {:role_id => 'all', :tracker_id => 'all'}
assert_response :success
- assert_select 'select[name=?][multiple=multiple]', 'role_id[]' do
- assert_select 'option[selected=selected]', Role.all.count(&:consider_workflow?)
+ assert_select 'select[name=?]', 'role_id[]' do
+ assert_select 'option[selected=selected][value=all]'
end
assert_select 'select[name=?]', 'tracker_id[]' do
assert_select 'option[selected=selected][value=all]'