diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-10 15:09:50 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-10 15:09:50 +0000 |
commit | de2fb5b82c92c90f90ed67ced45143c04e934fb8 (patch) | |
tree | ff8e5e642580de7bb596d90dd0e7f739f44ca540 /spec/features | |
parent | c6a33b298229f9e04933be43d6176c476ef03012 (diff) | |
download | gitlab-ce-de2fb5b82c92c90f90ed67ced45143c04e934fb8.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/clusters/cluster_detail_page_spec.rb | 18 |
1 files changed, 15 insertions, 3 deletions
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' |