Commit 614c0e0b authored by Matija Čupić's avatar Matija Čupić

Update GCP feature spec with check page flow

parent 886fd13f
...@@ -20,6 +20,11 @@ feature 'Gcp Cluster', :js do ...@@ -20,6 +20,11 @@ feature 'Gcp Cluster', :js do
.to receive(:expires_at_in_session).and_return(1.hour.since.to_i.to_s) .to receive(:expires_at_in_session).and_return(1.hour.since.to_i.to_s)
end end
context 'when user has a GCP project with billing enabled' do
before do
stub_google_project_billing_status
end
context 'when user does not have a cluster and visits cluster index page' do context 'when user does not have a cluster and visits cluster index page' do
before do before do
visit project_clusters_path(project) visit project_clusters_path(project)
...@@ -123,6 +128,20 @@ feature 'Gcp Cluster', :js do ...@@ -123,6 +128,20 @@ feature 'Gcp Cluster', :js do
end end
end end
context 'when user does not have a GCP project with billing enabled' do
before do
visit project_clusters_path(project)
click_link 'Add cluster'
click_link 'Create on GKE'
end
it 'user sees a check page' do
expect(page).to have_link('Continue')
end
end
end
context 'when user has not signed with Google' do context 'when user has not signed with Google' do
before do before do
visit project_clusters_path(project) visit project_clusters_path(project)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment