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

module QA
  module Page
    module Project
      module Infrastructure
        module Kubernetes
          class Add < Page::Base
            view 'app/views/clusters/clusters/new.html.haml' do
              element :add_existing_cluster_tab
            end

            def add_existing_cluster
              page.find('.gl-tab-nav-item', text: 'Connect existing cluster').click
            end
          end
        end
      end
    end
  end
end