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:
authorSam Beckham <sbeckham@gitlab.com>2018-06-29 11:26:56 +0300
committerPhil Hughes <me@iamphill.com>2018-06-29 11:26:56 +0300
commit7a6da82a83c4e183da42c2639d58fc6893735d1f (patch)
tree0185e052128018c67de70c645ba5f15bb350448a /spec/features/projects
parent786cbfa174779f2ac8bf558eb55f5bb825c918e7 (diff)
Resolve "Remove "environment scope" field on cluster creation form for core/starter plans"
Diffstat (limited to 'spec/features/projects')
-rw-r--r--spec/features/projects/clusters/gcp_spec.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/features/projects/clusters/gcp_spec.rb b/spec/features/projects/clusters/gcp_spec.rb
index c85b82b2090..3db384e5b65 100644
--- a/spec/features/projects/clusters/gcp_spec.rb
+++ b/spec/features/projects/clusters/gcp_spec.rb
@@ -157,6 +157,19 @@ feature 'Gcp Cluster', :js do
end
end
+ context 'when a user cannot edit the environment scope' do
+ before do
+ visit project_clusters_path(project)
+
+ click_link 'Add Kubernetes cluster'
+ click_link 'Add an existing Kubernetes cluster'
+ end
+
+ it 'user does not see the "Environment scope" field' do
+ expect(page).not_to have_css('#cluster_environment_scope')
+ end
+ end
+
context 'when user has not dismissed GCP signup offer' do
before do
visit project_clusters_path(project)