2015-11-17 11:22:29 +01:00
|
|
|
module WaitForAjax
|
|
|
|
def wait_for_ajax
|
2019-06-04 15:06:49 +02:00
|
|
|
expect(page).to have_selector('body[data-active-requests-count="0"]')
|
2015-11-17 11:22:29 +01:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
RSpec.configure do |config|
|
|
|
|
config.include WaitForAjax, type: :feature
|
|
|
|
end
|