Commit a52bbfdf authored by Stan Hu's avatar Stan Hu

Fix broken spec in ee/spec/features/projects/clusters_spec.rb

https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/27189
changed the frontend to display the cluster details only after it
has been created. To make the feature spec, we force the cluster
to be in the created state.

Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/13258
parent 52fd1dfd
......@@ -123,6 +123,11 @@ describe 'EE Clusters', :js do
fill_in 'cluster[provider_gcp_attributes][zone]', with: 'us-central1-a'
fill_in 'cluster[provider_gcp_attributes][machine_type]', with: 'n1-standard-2'
click_button 'Create Kubernetes cluster'
# The frontend won't show the details until the cluster is
# created, and we don't want to make calls out to GCP.
provider = Clusters::Cluster.last.provider
provider.make_created
end
it 'user sees a cluster details page' do
......
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