gitlab-org--gitlab-foss/spec/support/wait_for_vue_resource.rb
Phil Hughes 07d39ac053 Fixed tests
Added wait for vue helper
2016-09-15 18:20:36 -04:00

7 lines
209 B
Ruby

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