From 0d15a93d22f1add109acf42ab602308d1afb67e0 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 11 Jul 2020 16:22:01 +0000 Subject: [PATCH] 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 --- test/system/issues_test.rb | 5 +++-- 1 file 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 -- 2.39.5