Commit 75e4516c authored by Andrejs Cunskis's avatar Andrejs Cunskis

Merge branch 'fix-autodevops-e2e-test' into 'master'

Fix autodevops test failure

See merge request gitlab-org/gitlab!74609
parents f72f9462 c36c7470
......@@ -205,6 +205,7 @@ export default {
></gl-link
><gl-button
category="secondary"
data-qa-selector="connect_existing_cluster_button"
variant="confirm"
class="gl-ml-4"
:href="addClusterPath"
......
......@@ -6,12 +6,12 @@ module QA
module Infrastructure
module Kubernetes
class Index < Page::Base
view 'app/views/clusters/clusters/_cluster_list.html.haml' do
element :integrate_kubernetes_cluster_button
view 'app/assets/javascripts/clusters_list/components/clusters_view_all.vue' do
element :connect_existing_cluster_button
end
def connect_cluster_with_certificate
find('.js-add-cluster').click
def connect_existing_cluster
click_link 'Connect existing cluster'
end
def has_cluster?(cluster)
......
......@@ -24,7 +24,7 @@ module QA
&:go_to_infrastructure_kubernetes)
Page::Project::Infrastructure::Kubernetes::Index.perform(
&:connect_cluster_with_certificate)
&:connect_existing_cluster)
Page::Project::Infrastructure::Kubernetes::Add.perform(
&:add_existing_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