summaryrefslogtreecommitdiff
path: root/qa/qa/page/project/pipeline_editor/new.rb
blob: 5d79dd86f2acb431ad6496cb97e15c3d3f057c43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

module QA
  module Page
    module Project
      module PipelineEditor
        class New < QA::Page::Base
          view 'app/assets/javascripts/pipeline_editor/components/ui/pipeline_editor_empty_state.vue' do
            element :create_new_ci_button, required: true
          end

          def create_new_ci
            click_element(:create_new_ci_button, Page::Project::PipelineEditor::Show)
          end
        end
      end
    end
  end
end