Skip to content
Snippets Groups Projects
Commit 1dd42da8 authored by Robert Speicher's avatar Robert Speicher Committed by Dmitriy Zaporozhets
Browse files

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
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -14,6 +14,8 @@ module CapybaraHelpers
tries = 0
 
begin
sleep interval
yield
rescue Capybara::ExpectationNotMet => ex
if tries <= retries
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment