BigW Consortium Gitlab

wait_for_vue_resource.rb 215 Bytes
Newer Older
Phil Hughes committed
1 2 3
module WaitForVueResource
  def wait_for_vue_resource(spinner: true)
    Timeout.timeout(Capybara.default_max_wait_time) do
4
      loop until page.evaluate_script('window.activeVueResources').zero?
Phil Hughes committed
5 6 7
    end
  end
end