From 565d13d6540de55d177074ce51c65611cc7737a0 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sun, 9 Apr 2023 01:38:36 +0000 Subject: "Issue's subject" filter for spent time (#27821). Patch by Go MAEDA. git-svn-id: https://svn.redmine.org/redmine/trunk@22173 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/timelog_controller_test.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test') diff --git a/test/functional/timelog_controller_test.rb b/test/functional/timelog_controller_test.rb index 5aa5eec7c..2ccbf56f4 100644 --- a/test/functional/timelog_controller_test.rb +++ b/test/functional/timelog_controller_test.rb @@ -1258,6 +1258,19 @@ class TimelogControllerTest < Redmine::ControllerTest assert_equal [entry].map(&:id).map(&:to_s), css_select('input[name="ids[]"]').map {|e| e.attr(:value)} end + def text_index_with_issue_subject_filter + get( + :index, + :params => { + :f => ['issue.subject'], + :op => {'issue.subject' => '~'}, + :v => {'issue.subject' => ['"updating a recipe"']} + } + ) + assert_response :success + assert_equal [3], css_select('input[name="ids[]"]').map {|e| e.attr(:value)} + end + def test_index_with_project_status_filter project = Project.find(3) project.close -- cgit v1.2.3