demarches-normaliennes/spec/support/wait_for_ajax.rb
Paul Chavard 6d312e1716 spec: refactor wait_for_ajax to work with out new ajax utils
`wait_for_ajax` is not used anymore, but it may be in the future.
2019-06-04 16:30:36 +02:00

9 lines
201 B
Ruby

module WaitForAjax
def wait_for_ajax
expect(page).to have_selector('body[data-active-requests-count="0"]')
end
end
RSpec.configure do |config|
config.include WaitForAjax, type: :feature
end