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