Fix features/projects/clusters/user_spec.rb
This commit is contained in:
parent
095b5eb4c1
commit
6b1ad363dc
|
@ -21,14 +21,17 @@ feature 'User Cluster', :js do
|
|||
|
||||
context 'when user filled form with valid parameters' do
|
||||
before do
|
||||
fill_in 'cluster_name', with: 'dev-cluster'
|
||||
fill_in 'cluster_platform_kubernetes_attributes_api_url', with: 'http://example.com'
|
||||
fill_in 'cluster_platform_kubernetes_attributes_token', with: 'my-token'
|
||||
fill_in 'cluster_name', with: 'dev-cluster'
|
||||
click_button 'Add cluster'
|
||||
end
|
||||
|
||||
it 'user sees a cluster details page and creation status' do
|
||||
expect(page).to have_content('Cluster was successfully created on Google Container Engine')
|
||||
it 'user sees a cluster details page' do
|
||||
expect(page).to have_content('Enable cluster integration')
|
||||
expect(page).to have_content('dev-cluster')
|
||||
expect(page).to have_content('http://example.com')
|
||||
expect(page).to have_content('my-token')
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue