Sha256: 2979efe324d156310c8db0338cb598084242169f69ba502e8436254b02cc546c
Contents?: true
Size: 397 Bytes
Versions: 38
Compression:
Stored size: 397 Bytes
Contents
# from http://robots.thoughtbot.com/automatically-wait-for-ajax-with-capybara module WaitForAjax def wait_for_ajax Timeout.timeout(Capybara.default_wait_time) do loop until finished_all_ajax_requests? end end def finished_all_ajax_requests? page.evaluate_script('jQuery.active').zero? end end RSpec.configure do |config| config.include WaitForAjax, type: :feature end
Version data entries
38 entries across 38 versions & 1 rubygems