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.
This commit is contained in:
parent
bf71d53f63
commit
1dd42da802
1 changed files with 2 additions and 0 deletions
|
@ -14,6 +14,8 @@ module CapybaraHelpers
|
|||
tries = 0
|
||||
|
||||
begin
|
||||
sleep interval
|
||||
|
||||
yield
|
||||
rescue Capybara::ExpectationNotMet => ex
|
||||
if tries <= retries
|
||||
|
|
Loading…
Reference in a new issue