wait_for_vue_resource.rb 209 Bytes EditWeb IDE 1 2 3 4 5 6 7 module WaitForVueResource def wait_for_vue_resource(spinner: true) Timeout.timeout(Capybara.default_max_wait_time) do loop until page.evaluate_script('Vue.activeResources').zero? end end end