diff options
Diffstat (limited to 'spec/support/capybara_helpers.rb')
-rw-r--r-- | spec/support/capybara_helpers.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/support/capybara_helpers.rb b/spec/support/capybara_helpers.rb index 5356a3b588d..9b5c3065eed 100644 --- a/spec/support/capybara_helpers.rb +++ b/spec/support/capybara_helpers.rb @@ -14,6 +14,8 @@ module CapybaraHelpers tries = 0 begin + sleep interval + yield rescue Capybara::ExpectationNotMet => ex if tries <= retries |