gitlab-org--gitlab-foss/spec/support/wait_for_vue_resource.rb

8 lines
215 B
Ruby
Raw Normal View History

2016-09-07 12:14:41 -04:00
module WaitForVueResource
def wait_for_vue_resource(spinner: true)
Timeout.timeout(Capybara.default_max_wait_time) do
loop until page.evaluate_script('window.activeVueResources').zero?
2016-09-07 12:14:41 -04:00
end
end
end