diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2020-04-05 11:19:53 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2020-04-05 11:19:53 +0000 |
commit | d1360a67ab6a0909ed5d4164bcc7c403828ac2ed (patch) | |
tree | 1123b12d0fe142f48c6848bdf29b426e52eab4da /test | |
parent | 4b0ac7a78b31a409f51814303d6b40ecf24801a3 (diff) | |
download | redmine-d1360a67ab6a0909ed5d4164bcc7c403828ac2ed.tar.gz redmine-d1360a67ab6a0909ed5d4164bcc7c403828ac2ed.zip |
Merged r19653, r19654 and r19662 to 4.1-stable (#3800).
git-svn-id: http://svn.redmine.org/redmine/branches/4.1-stable@19664 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/timelog_controller_test.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/functional/timelog_controller_test.rb b/test/functional/timelog_controller_test.rb index 8b701432b..43c53a576 100644 --- a/test/functional/timelog_controller_test.rb +++ b/test/functional/timelog_controller_test.rb @@ -46,6 +46,8 @@ class TimelogControllerTest < Redmine::ControllerTest # blank option for project assert_select 'option[value=""]' end + assert_select 'label[for=?]', 'time_entry_user_id', 0 + assert_select 'select[name=?]', 'time_entry[user_id]', 0 end def test_new_with_project_id @@ -150,6 +152,11 @@ class TimelogControllerTest < Redmine::ControllerTest assert_response :success assert_select 'form[action=?]', '/time_entries/2' + + # Time entry user should be shown as text + # for user without permission to log time for other users + assert_select 'label[for=?]', 'time_entry_user_id', 1 + assert_select 'a.user.active', :text => 'Redmine Admin' end def test_get_edit_with_an_existing_time_entry_with_inactive_activity @@ -704,7 +711,7 @@ class TimelogControllerTest < Redmine::ControllerTest assert_select 'ul#bulk-selection' do assert_select 'li', 2 - assert_select 'li a', :text => '03/23/2007 - eCookbook: 4.25 hours' + assert_select 'li a', :text => '03/23/2007 - eCookbook: 4.25 hours (John Smith)' end assert_select 'form#bulk_edit_form[action=?]', '/time_entries/bulk_update' do |