6d312e1716
`wait_for_ajax` is not used anymore, but it may be in the future.
9 lines
201 B
Ruby
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
|