Commit 6b1ad363 authored by Shinya Maeda's avatar Shinya Maeda

Fix features/projects/clusters/user_spec.rb

parent 095b5eb4
......@@ -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
......
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