fix more rspec tests
This commit is contained in:
parent
3ba97f5d1b
commit
b4308842de
|
@ -24,7 +24,7 @@
|
||||||
= render 'projects/clusters/gcp/form'
|
= render 'projects/clusters/gcp/form'
|
||||||
- elsif @authorize_url
|
- elsif @authorize_url
|
||||||
= link_to @authorize_url do
|
= link_to @authorize_url do
|
||||||
= image_tag('auth_buttons/signin_with_google.png', width: '191px')
|
= image_tag('auth_buttons/signin_with_google.png', width: '191px', class: 'signin-with-google')
|
||||||
= _('or')
|
= _('or')
|
||||||
= link_to('create a new Google account', 'https://accounts.google.com/SignUpWithoutGmail?service=cloudconsole&continue=https%3A%2F%2Fconsole.cloud.google.com%2Ffreetrial%3Futm_campaign%3D2018_cpanel%26utm_source%3Dgitlab%26utm_medium%3Dreferral', target: '_blank', rel: 'noopener noreferrer')
|
= link_to('create a new Google account', 'https://accounts.google.com/SignUpWithoutGmail?service=cloudconsole&continue=https%3A%2F%2Fconsole.cloud.google.com%2Ffreetrial%3Futm_campaign%3D2018_cpanel%26utm_source%3Dgitlab%26utm_medium%3Dreferral', target: '_blank', rel: 'noopener noreferrer')
|
||||||
- else
|
- else
|
||||||
|
|
|
@ -16,9 +16,9 @@ feature 'Gcp Cluster', :js do
|
||||||
let(:project_id) { 'test-project-1234' }
|
let(:project_id) { 'test-project-1234' }
|
||||||
|
|
||||||
before do
|
before do
|
||||||
allow_any_instance_of(Projects::Clusters::GcpController)
|
allow_any_instance_of(Projects::ClustersController)
|
||||||
.to receive(:token_in_session).and_return('token')
|
.to receive(:token_in_session).and_return('token')
|
||||||
allow_any_instance_of(Projects::Clusters::GcpController)
|
allow_any_instance_of(Projects::ClustersController)
|
||||||
.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
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ feature 'Gcp Cluster', :js do
|
||||||
visit project_clusters_path(project)
|
visit project_clusters_path(project)
|
||||||
|
|
||||||
click_link 'Add Kubernetes cluster'
|
click_link 'Add Kubernetes cluster'
|
||||||
click_link 'Create on Google Kubernetes Engine'
|
click_link 'Create new Cluster on GKE'
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'when user filled form with valid parameters' do
|
context 'when user filled form with valid parameters' do
|
||||||
|
@ -139,7 +139,7 @@ feature 'Gcp Cluster', :js do
|
||||||
visit project_clusters_path(project)
|
visit project_clusters_path(project)
|
||||||
|
|
||||||
click_link 'Add Kubernetes cluster'
|
click_link 'Add Kubernetes cluster'
|
||||||
click_link 'Create on Google Kubernetes Engine'
|
click_link 'Create new Cluster on GKE'
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'user sees a login page' do
|
it 'user sees a login page' do
|
||||||
|
@ -165,7 +165,7 @@ feature 'Gcp Cluster', :js do
|
||||||
|
|
||||||
it 'user sees offer on cluster GCP login page' do
|
it 'user sees offer on cluster GCP login page' do
|
||||||
click_link 'Add Kubernetes cluster'
|
click_link 'Add Kubernetes cluster'
|
||||||
click_link 'Create on Google Kubernetes Engine'
|
click_link 'Create new Cluster on GKE'
|
||||||
|
|
||||||
expect(page).to have_css('.gcp-signup-offer')
|
expect(page).to have_css('.gcp-signup-offer')
|
||||||
end
|
end
|
||||||
|
|
|
@ -83,7 +83,7 @@ feature 'Clusters', :js do
|
||||||
visit project_clusters_path(project)
|
visit project_clusters_path(project)
|
||||||
|
|
||||||
click_link 'Add Kubernetes cluster'
|
click_link 'Add Kubernetes cluster'
|
||||||
click_link 'Create on Google Kubernetes Engine'
|
click_link 'Create new Cluster on GKE'
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'user sees a login page' do
|
it 'user sees a login page' do
|
||||||
|
|
Loading…
Reference in New Issue