summaryrefslogtreecommitdiff
path: root/qa/qa/page/project/pipeline/index.rb
blob: 0373a12f5970eab58aa2cb78b8dd883a297afe07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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"' # rubocop:disable QA/ElementWithPattern
      end

      def click_on_latest_pipeline
        css = '.js-pipeline-url-link'

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

        link.click
      end
    end
  end
end