summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/support/wait_for_ajax.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/support/wait_for_ajax.rb b/spec/support/wait_for_ajax.rb
index d10c265c336..508de2ee8e1 100644
--- a/spec/support/wait_for_ajax.rb
+++ b/spec/support/wait_for_ajax.rb
@@ -7,6 +7,7 @@ module WaitForAjax
def finished_all_ajax_requests?
return true unless javascript_test?
+ return true if page.evaluate_script('typeof jQuery === "undefined"')
page.evaluate_script('jQuery.active').zero?
end