diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-07-11 16:22:01 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-07-11 16:22:01 +0000 |
commit | 0d15a93d22f1add109acf42ab602308d1afb67e0 (patch) | |
tree | 02486e375b9275d8e5ce97150a31a2aa3bb444aa /test/system/issues_test.rb | |
parent | 258ba9b88ba92bc029f857d06096aa826dc608a4 (diff) | |
download | redmine-0d15a93d22f1add109acf42ab602308d1afb67e0.tar.gz redmine-0d15a93d22f1add109acf42ab602308d1afb67e0.zip |
wait for ajax response to prevent random failure in IssuesSystemTest#test_bulk_copy
git-svn-id: http://svn.redmine.org/redmine/trunk@19890 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/system/issues_test.rb')
-rw-r--r-- | test/system/issues_test.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/system/issues_test.rb b/test/system/issues_test.rb index 590445eee..f6873142c 100644 --- a/test/system/issues_test.rb +++ b/test/system/issues_test.rb @@ -421,9 +421,10 @@ class IssuesSystemTest < ApplicationSystemTestCase page.find('#issue_priority_id').select('Low') assert_difference 'Issue.count', 2 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') copies = Issue.order('id DESC').limit(2) assert_equal 4, copies[0].priority.id |