mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-20 23:41:12 +00:00
wait for ajax response in IssuesSystemTest#test_bulk_edit as same with IssuesSystemTest#test_bulk_copy
git-svn-id: http://svn.redmine.org/redmine/trunk@19891 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
0d15a93d22
commit
7a7542b51d
@ -360,9 +360,10 @@ class IssuesSystemTest < ApplicationSystemTestCase
|
||||
page.find('#issue_status_id').select('Assigned')
|
||||
assert_no_difference 'Issue.count' do
|
||||
submit_buttons[0].click
|
||||
end
|
||||
assert_current_path '/issues', :ignore_query => true
|
||||
# wait for ajax response
|
||||
assert page.has_css?('#flash_notice')
|
||||
assert_current_path '/issues', :ignore_query => true
|
||||
end
|
||||
assert_equal 2, issue1.reload.status.id
|
||||
assert_equal 2, issue4.reload.status.id
|
||||
|
||||
@ -391,10 +392,11 @@ class IssuesSystemTest < ApplicationSystemTestCase
|
||||
page.find('#issue_status_id').select('Feedback')
|
||||
assert_no_difference 'Issue.count' do
|
||||
submit_buttons[1].click
|
||||
# wait for ajax response
|
||||
assert page.has_css?('#flash_notice')
|
||||
assert_current_path '/projects/onlinestore/issues', :ignore_query => true
|
||||
end
|
||||
|
||||
assert_current_path '/projects/onlinestore/issues', :ignore_query => true
|
||||
assert page.has_css?('#flash_notice')
|
||||
issue1.reload
|
||||
issue4.reload
|
||||
assert_equal 2, issue1.project.id
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user