Skip to content
Snippets Groups Projects
Commit 6d32216a authored by Daniel Davison's avatar Daniel Davison
Browse files

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
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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' }
Loading
Loading
@@ -7,11 +7,11 @@ module Operations
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)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment