summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-12-04 22:17:22 +0900
committerShinya Maeda <shinya@gitlab.com>2017-12-04 22:17:22 +0900
commit6b1ad363dc3902fa5052aee8a2f98b128fd617e6 (patch)
tree7db431427455aa14ca1f176fb95571bb46798621
parent095b5eb4c16a4f9217f2431a24f11121a86725a3 (diff)
downloadgitlab-ce-6b1ad363dc3902fa5052aee8a2f98b128fd617e6.tar.gz
Fix features/projects/clusters/user_spec.rb
-rw-r--r--spec/features/projects/clusters/user_spec.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/spec/features/projects/clusters/user_spec.rb b/spec/features/projects/clusters/user_spec.rb
index fe2f6a293c2..e141d19ea5d 100644
--- a/spec/features/projects/clusters/user_spec.rb
+++ b/spec/features/projects/clusters/user_spec.rb
@@ -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