diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/controllers/projects/clusters_controller_spec.rb | 4 | ||||
-rw-r--r-- | spec/features/projects/clusters_spec.rb | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/spec/controllers/projects/clusters_controller_spec.rb b/spec/controllers/projects/clusters_controller_spec.rb index bfa5b5a91dc..b6c7186b9c8 100644 --- a/spec/controllers/projects/clusters_controller_spec.rb +++ b/spec/controllers/projects/clusters_controller_spec.rb @@ -113,7 +113,7 @@ describe Projects::ClustersController do end end - describe 'GET new' do + describe 'GET new_gcp' do let(:project) { create(:project) } describe 'functionality' do @@ -161,7 +161,7 @@ describe Projects::ClustersController do end def go - get :new, namespace_id: project.namespace, project_id: project + get :new_gcp, namespace_id: project.namespace, project_id: project end end diff --git a/spec/features/projects/clusters_spec.rb b/spec/features/projects/clusters_spec.rb index 27c1f5062f5..83049b788e2 100644 --- a/spec/features/projects/clusters_spec.rb +++ b/spec/features/projects/clusters_spec.rb @@ -22,6 +22,8 @@ feature 'Clusters', :js do context 'when user does not have a cluster and visits cluster index page' do before do visit project_clusters_path(project) + + click_link 'Create on GKE' end it 'user sees a new page' do @@ -98,7 +100,7 @@ feature 'Clusters', :js do it 'user sees creation form with the succeccful message' do expect(page).to have_content('Cluster integration was successfully removed.') - expect(page).to have_button('Create cluster') + expect(page).to have_content('Choose how to set up cluster integration') end end end @@ -107,6 +109,8 @@ feature 'Clusters', :js do context 'when user has not signed in Google' do before do visit project_clusters_path(project) + + click_link 'Create on GKE' end it 'user sees a login page' do |