Welcome to mirror list, hosted at ThFree Co, Russian Federation.

wait_for_vue_resource.rb « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1029f84716fd99503eb95949ce7996292f2fced1 (plain)
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