mirror of
https://github.com/redmine/redmine.git
synced 2026-03-25 22:00:43 +01:00
Merged r15202 (#22108).
git-svn-id: http://svn.redmine.org/redmine/branches/3.2-stable@15226 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -428,6 +428,26 @@ class IssuesControllerTest < ActionController::TestCase
|
||||
end
|
||||
end
|
||||
|
||||
def test_index_should_include_query_params_as_hidden_fields_in_csv_export_form
|
||||
get :index, :project_id => 1, :set_filter => "1", :tracker_id => "2", :sort => 'status', :c => ["status", "priority"]
|
||||
|
||||
assert_select '#csv-export-form[action=?]', '/projects/ecookbook/issues.csv'
|
||||
assert_select '#csv-export-form[method=?]', 'get'
|
||||
|
||||
assert_select '#csv-export-form' do
|
||||
assert_select 'input[name=?][value=?]', 'set_filter', '1'
|
||||
|
||||
assert_select 'input[name=?][value=?]', 'f[]', 'tracker_id'
|
||||
assert_select 'input[name=?][value=?]', 'op[tracker_id]', '='
|
||||
assert_select 'input[name=?][value=?]', 'v[tracker_id][]', '2'
|
||||
|
||||
assert_select 'input[name=?][value=?]', 'c[]', 'status'
|
||||
assert_select 'input[name=?][value=?]', 'c[]', 'priority'
|
||||
|
||||
assert_select 'input[name=?][value=?]', 'sort', 'status'
|
||||
end
|
||||
end
|
||||
|
||||
def test_index_csv
|
||||
get :index, :format => 'csv'
|
||||
assert_response :success
|
||||
|
||||
Reference in New Issue
Block a user