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:
Toshi MARUYAMA
2020-07-11 16:22:09 +00:00
parent 0d15a93d22
commit 7a7542b51d

View File

@@ -360,9 +360,10 @@ class IssuesSystemTest < ApplicationSystemTestCase
page.find('#issue_status_id').select('Assigned')
assert_no_difference 'Issue.count' do
submit_buttons[0].click
# wait for ajax response
assert page.has_css?('#flash_notice')
assert_current_path '/issues', :ignore_query => true
end
assert_current_path '/issues', :ignore_query => true
assert page.has_css?('#flash_notice')
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