Add test assertions to the four controller test cases (#26125).

Patch by Mischa The Evil.

git-svn-id: http://svn.redmine.org/redmine/trunk@16704 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2017-06-25 15:17:21 +00:00
parent cb285aeec1
commit 2c68178861
4 changed files with 46 additions and 0 deletions

View File

@@ -94,6 +94,17 @@ class IssuesControllerTest < Redmine::ControllerTest
}
assert_response :success
# query form
assert_select 'form#query_form' do
assert_select 'div#query_form_with_buttons.hide-when-print' do
assert_select 'div#query_form_content' do
assert_select 'fieldset#filters.collapsible'
assert_select 'fieldset#options'
end
assert_select 'p.buttons'
end
end
assert_select 'a[href="/issues/1"]', :text => /Cannot print recipes/
assert_select 'a[href="/issues/5"]', 0
end