Module: CapybaraTimeoutPatch
- Defined in:
- lib/capybara_timeout_patch.rb
Instance Method Summary collapse
Instance Method Details
#synchronize(seconds = nil, errors: nil) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/capybara_timeout_patch.rb', line 11 def synchronize(seconds = nil, errors: nil) super rescue Capybara::ExpectationNotMet => e warn "Capybara finder timed-out: #{e.}" unless seconds < 0.01 warn Rails.backtrace_cleaner.clean(e.backtrace) raise e end |