Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-04-10 18:09:50 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-04-10 18:09:50 +0300
commitde2fb5b82c92c90f90ed67ced45143c04e934fb8 (patch)
treeff8e5e642580de7bb596d90dd0e7f739f44ca540 /spec/features
parentc6a33b298229f9e04933be43d6176c476ef03012 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/clusters/cluster_detail_page_spec.rb18
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'