Commit 6b298d06 authored by Robert Speicher's avatar Robert Speicher

Return early from `finished_all_ajax_requests?` when jQuery is undefined

parent 5647d5de
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment