summaryrefslogtreecommitdiffstats
path: root/test/test_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r--test/test_helper.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb
index 0066d3819..ffb2d7055 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -303,11 +303,16 @@ module Redmine
Issue.where(:id => ids).sort_by {|issue| ids.index(issue.id)}
end
- # Return the columns that are displayed in the list
+ # Return the columns that are displayed in the issue list
def columns_in_issues_list
css_select('table.issues thead th:not(.checkbox)').map(&:text)
end
+ # Return the columns that are displayed in the list
+ def columns_in_list
+ css_select('table.list thead th:not(.checkbox)').map(&:text).select(&:present?)
+ end
+
# Verifies that the query filters match the expected filters
def assert_query_filters(expected_filters)
response.body =~ /initFilters\(\);\s*((addFilter\(.+\);\s*)*)/