提交 6b1ad363 编写于 作者: S Shinya Maeda

Fix features/projects/clusters/user_spec.rb

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册