From dc889678d1de8c09310b2f8f9742bb6c78a6f1a4 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Thu, 12 Mar 2020 15:09:39 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- qa/qa/page/project/operations/kubernetes/show.rb | 20 +++++++++++++++++++- qa/qa/resource/kubernetes_cluster.rb | 5 +++++ 2 files changed, 24 insertions(+), 1 deletion(-) (limited to 'qa') diff --git a/qa/qa/page/project/operations/kubernetes/show.rb b/qa/qa/page/project/operations/kubernetes/show.rb index b639f867593..46fddfa6078 100644 --- a/qa/qa/page/project/operations/kubernetes/show.rb +++ b/qa/qa/page/project/operations/kubernetes/show.rb @@ -10,17 +10,35 @@ module QA element :ingress_ip_address, 'id="ingress-endpoint"' # rubocop:disable QA/ElementWithPattern end - view 'app/views/clusters/clusters/_form.html.haml' do + view 'app/views/clusters/clusters/_gitlab_integration_form.html.haml' do element :integration_status_toggle, required: true element :base_domain_field, required: true element :save_changes_button, required: true end + view 'app/views/clusters/clusters/_details_tab.html.haml' do + element :details, required: true + end + + view 'app/views/clusters/clusters/_applications_tab.html.haml' do + element :applications, required: true + end + view 'app/assets/javascripts/clusters/components/application_row.vue' do element :install_button element :uninstall_button end + def open_details + has_element?(:details, wait: 30) + click_element :details + end + + def open_applications + has_element?(:applications, wait: 30) + click_element :applications + end + def install!(application_name) within_element(application_name) do has_element?(:install_button, application: application_name, wait: 30) diff --git a/qa/qa/resource/kubernetes_cluster.rb b/qa/qa/resource/kubernetes_cluster.rb index 1930e0465b2..7306acfe2a4 100644 --- a/qa/qa/resource/kubernetes_cluster.rb +++ b/qa/qa/resource/kubernetes_cluster.rb @@ -38,6 +38,9 @@ module QA # We must wait a few seconds for permissions to be set up correctly for new cluster sleep 10 + # Open applications tab + show.open_applications + # Helm must be installed before everything else show.install!(:helm) show.await_installed(:helm) @@ -52,6 +55,8 @@ module QA if @install_ingress populate(:ingress_ip) + + show.open_details show.set_domain("#{ingress_ip}.nip.io") show.save_domain end -- cgit v1.2.3