Commit 6d32216a authored by Dan Davison's avatar Dan Davison

Merge branch 'qa-update-add-kb-cluster-selector' into 'master'

Update add kubernetes cluster qa selector

See merge request gitlab-org/gitlab!54495
parents 2a604589 270f5fad
......@@ -11,4 +11,4 @@
- if clusterable.can_add_cluster?
.gl-text-center
= link_to s_('ClusterIntegration|Integrate with a cluster certificate'), clusterable.new_path, class: 'gl-button btn btn-success'
= link_to s_('ClusterIntegration|Integrate with a cluster certificate'), clusterable.new_path, class: 'gl-button btn btn-success', data: { qa_selector: 'add_kubernetes_cluster_link' }
......@@ -7,11 +7,11 @@ module QA
module Kubernetes
class Index < Page::Base
view 'app/views/clusters/clusters/_empty_state.html.haml' do
element :add_kubernetes_cluster_button, "link_to s_('ClusterIntegration|Integrate with a cluster certificate')" # rubocop:disable QA/ElementWithPattern
element :add_kubernetes_cluster_link
end
def add_kubernetes_cluster
click_on 'Connect cluster with certificate'
click_element :add_kubernetes_cluster_link
end
def has_cluster?(cluster)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment