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

index.rb « kubernetes « infrastructure « project « page « qa « qa - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4c759a049e1458c9cb80905cf834f0f1019b84f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# frozen_string_literal: true

module QA
  module Page
    module Project
      module Infrastructure
        module Kubernetes
          class Index < Page::Base
            view 'app/assets/javascripts/clusters_list/components/clusters_actions.vue' do
              element :clusters_actions_button
            end

            def connect_cluster
              click_element(:clusters_actions_button)
            end

            def has_cluster?(cluster)
              has_element?(:cluster, cluster_name: cluster.to_s)
            end
          end
        end
      end
    end
  end
end