From de2fb5b82c92c90f90ed67ced45143c04e934fb8 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Fri, 10 Apr 2020 15:09:50 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- spec/features/clusters/cluster_detail_page_spec.rb | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'spec/features/clusters') diff --git a/spec/features/clusters/cluster_detail_page_spec.rb b/spec/features/clusters/cluster_detail_page_spec.rb index 28d6c10f04f..4b478163952 100644 --- a/spec/features/clusters/cluster_detail_page_spec.rb +++ b/spec/features/clusters/cluster_detail_page_spec.rb @@ -14,6 +14,12 @@ describe 'Clusterable > Show page' do end shared_examples 'show page' do + it 'displays cluster type label' do + visit cluster_path + + expect(page).to have_content(cluster_type_label) + end + it 'allow the user to set domain' do visit cluster_path @@ -125,7 +131,9 @@ describe 'Clusterable > Show page' do clusterable.add_maintainer(current_user) end - it_behaves_like 'show page' + it_behaves_like 'show page' do + let(:cluster_type_label) { 'Project cluster' } + end it_behaves_like 'editing a GCP cluster' @@ -143,7 +151,9 @@ describe 'Clusterable > Show page' do clusterable.add_maintainer(current_user) end - it_behaves_like 'show page' + it_behaves_like 'show page' do + let(:cluster_type_label) { 'Group cluster' } + end it_behaves_like 'editing a GCP cluster' @@ -157,7 +167,9 @@ describe 'Clusterable > Show page' do let(:cluster_path) { admin_cluster_path(cluster) } let(:cluster) { create(:cluster, :provided_by_gcp, :instance) } - it_behaves_like 'show page' + it_behaves_like 'show page' do + let(:cluster_type_label) { 'Instance cluster' } + end it_behaves_like 'editing a GCP cluster' -- cgit v1.2.1