summaryrefslogtreecommitdiff
path: root/qa/qa/page/project/pipeline/index.rb
blob: 466010935b1b3d9b3abaca9b3209d53f511de0bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
module QA::Page
  module Project::Pipeline
    class Index < QA::Page::Base
      view 'app/assets/javascripts/pipelines/components/pipeline_url.vue' do
        element :pipeline_link, 'class="js-pipeline-url-link"'
      end

      def go_to_latest_pipeline
        css = '.js-pipeline-url-link'
        link = nil

        wait(reload: false) do
          link = first(css)
        end

        link.click
      end
    end
  end
end