diff options
Diffstat (limited to 'qa')
-rw-r--r-- | qa/qa/page/project/operations/kubernetes/show.rb | 20 | ||||
-rw-r--r-- | qa/qa/resource/kubernetes_cluster.rb | 5 |
2 files changed, 24 insertions, 1 deletions
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 |