Load changesets and time entries tabs async (#3058).

Patch by Marius BALTEANU.

git-svn-id: http://svn.redmine.org/redmine/trunk@18275 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2019-06-20 07:12:30 +00:00
parent 0714ced815
commit 94c2356f38
11 changed files with 63 additions and 37 deletions

View File

@@ -2168,9 +2168,11 @@ class IssuesControllerTest < Redmine::ControllerTest
project.disable_module! :repository
@request.session[:user_id] = 2
get :show, :params => {
:id => issue.id
}
get :issue_tab, :params => {
:id => issue.id,
:name => 'changesets'
},
:xhr => true
assert_select 'a[href=?]', '/projects/ecookbook/repository/10/revisions/3'
end
@@ -2560,6 +2562,13 @@ class IssuesControllerTest < Redmine::ControllerTest
assert_select 'div.tabs a[id=?]', 'tab-time_entries', :text => 'Spent time'
end
get :issue_tab, :params => {
:id => 3,
:name => 'time_entries'
},
:xhr => true
assert_response :success
assert_select 'div[id=?]', 'time-entry-3' do
assert_select 'a[title=?][href=?]', 'Edit', '/time_entries/3/edit'
assert_select 'a[title=?][href=?]', 'Delete', '/time_entries/3'