summaryrefslogtreecommitdiff
path: root/spec/features/projects/clusters_spec.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-11-27 00:06:23 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2019-11-27 00:06:23 +0000
commitbd8a202da68db8c61150d52e246997f04c329110 (patch)
tree27231f7ecf92696b90712510ea408fb7d1b6366b /spec/features/projects/clusters_spec.rb
parent59a349817c0869e8e0d750884b34256ca4faefca (diff)
downloadgitlab-ce-bd8a202da68db8c61150d52e246997f04c329110.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/projects/clusters_spec.rb')
-rw-r--r--spec/features/projects/clusters_spec.rb33
1 files changed, 6 insertions, 27 deletions
diff --git a/spec/features/projects/clusters_spec.rb b/spec/features/projects/clusters_spec.rb
index 67d14d0a58a..9b02991cd53 100644
--- a/spec/features/projects/clusters_spec.rb
+++ b/spec/features/projects/clusters_spec.rb
@@ -49,41 +49,20 @@ describe 'Clusters', :js do
end
end
- context 'when user has not signed in Google' do
+ context 'user visits create cluster page' do
before do
- stub_feature_flags(create_eks_clusters: false)
visit project_clusters_path(project)
click_link 'Add Kubernetes cluster'
- click_link 'Create new Cluster on GKE'
+ click_link 'Create new Cluster'
end
- it 'user sees a login page' do
- expect(page).to have_css('.signin-with-google')
- expect(page).to have_link('Google account')
+ it 'user sees a link to create a GKE cluster' do
+ expect(page).to have_link('Google GKE')
end
- end
-
- context 'when create_eks_clusters feature flag is enabled' do
- before do
- stub_feature_flags(create_eks_clusters: true)
- end
-
- context 'when user access create cluster page' do
- before do
- visit project_clusters_path(project)
- click_link 'Add Kubernetes cluster'
- click_link 'Create new Cluster'
- end
-
- it 'user sees a link to create a GKE cluster' do
- expect(page).to have_link('Google GKE')
- end
-
- it 'user sees a link to create an EKS cluster' do
- expect(page).to have_link('Amazon EKS')
- end
+ it 'user sees a link to create an EKS cluster' do
+ expect(page).to have_link('Amazon EKS')
end
end
end