From 7a7542b51dc16bd1a68ec6670b2c2a92700472ba Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 11 Jul 2020 16:22:09 +0000 Subject: [PATCH] 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 --- test/system/issues_test.rb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test/system/issues_test.rb b/test/system/issues_test.rb index f6873142c..e6f70ef15 100644 --- a/test/system/issues_test.rb +++ b/test/system/issues_test.rb @@ -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 -- 2.39.5