diff --git a/features/support/wait_for_ajax.rb b/features/support/wait_for_ajax.rb index 7b0a2060ae..636b03c2a6 100644 --- a/features/support/wait_for_ajax.rb +++ b/features/support/wait_for_ajax.rb @@ -5,7 +5,9 @@ module WaitForAjax # def wait_for_ajax(wait_time: Capybara.default_max_wait_time) max_time = Capybara::Helpers.monotonic_time + wait_time + puts '----' while Capybara::Helpers.monotonic_time < max_time + puts ">> #{max_time - Capybara::Helpers.monotonic_time}" finished = finished_all_ajax_requests? finished ? break : sleep(0.5) end