diff options
author | Go MAEDA <maeda@farend.jp> | 2018-01-15 04:17:53 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2018-01-15 04:17:53 +0000 |
commit | 7844b65f3c5a5a188a1bea1543071dbb63d726e8 (patch) | |
tree | 5da8d16a606bdaa5fda3484dcbcc2e5607c9f471 /test/functional/issues_controller_test.rb | |
parent | f4964026347660239127998cd7cc32c295265fd2 (diff) | |
download | redmine-7844b65f3c5a5a188a1bea1543071dbb63d726e8.tar.gz redmine-7844b65f3c5a5a188a1bea1543071dbb63d726e8.zip |
Add CSS classes to column headers of issues and timelogs list (#26674).
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@17176 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/issues_controller_test.rb')
-rw-r--r-- | test/functional/issues_controller_test.rb | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index 3ab922a22..c423d6de3 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -1012,7 +1012,12 @@ class IssuesControllerTest < Redmine::ControllerTest assert_response :success # query should use specified columns + id and checkbox - assert_select 'table.issues thead th', columns.size + 2 + assert_select 'table.issues thead' do + assert_select 'th', columns.size + 2 + assert_select 'th.tracker' + assert_select 'th.subject' + assert_select 'th.assigned_to' + end # columns should be stored in session assert_kind_of Hash, session[:issue_query] @@ -1073,7 +1078,10 @@ class IssuesControllerTest < Redmine::ControllerTest # query should use specified columns assert_equal ["#", "Tracker", "Subject", "Searchable field"], columns_in_issues_list - assert_select 'table.issues td.cf_2.string' + assert_select 'table.issues' do + assert_select 'th.cf_2.string' + assert_select 'td.cf_2.string' + end end def test_index_with_multi_custom_field_column @@ -1119,7 +1127,10 @@ class IssuesControllerTest < Redmine::ControllerTest :set_filter => 1, :c => %w(start_date) } - assert_select "table.issues td.start_date", :text => '24/08/1987' + assert_select 'table.issues' do + assert_select 'th.start_date' + assert_select 'td.start_date', :text => '24/08/1987' + end end end |