提交 1dd42da8 编写于 作者: R Robert Speicher 提交者: Dmitriy Zaporozhets

Add sleep call before yield in allowing_for_delay

This is to give pending AJAX requests time to complete before we
navigate away, for example.
上级 bf71d53f
......@@ -14,6 +14,8 @@ module CapybaraHelpers
tries = 0
begin
sleep interval
yield
rescue Capybara::ExpectationNotMet => ex
if tries <= retries
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册