Skip to content
代码片段 群组 项目
提交 6b298d06 编辑于 作者: Robert Speicher's avatar Robert Speicher
浏览文件

Return early from `finished_all_ajax_requests?` when jQuery is undefined

上级 5647d5de
No related branches found
No related tags found
无相关合并请求
...@@ -7,6 +7,7 @@ def wait_for_ajax ...@@ -7,6 +7,7 @@ def wait_for_ajax
def finished_all_ajax_requests? def finished_all_ajax_requests?
return true unless javascript_test? return true unless javascript_test?
return true if page.evaluate_script('typeof jQuery === "undefined"')
page.evaluate_script('jQuery.active').zero? page.evaluate_script('jQuery.active').zero?
end end
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册