Commit 1dd42da8 authored by Robert Speicher's avatar Robert Speicher Committed by 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.
parent bf71d53f
......@@ -14,6 +14,8 @@ module CapybaraHelpers
tries = 0
begin
sleep interval
yield
rescue Capybara::ExpectationNotMet => ex
if tries <= retries
......
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