diff --git a/spec/features/projects/clusters/user_spec.rb b/spec/features/projects/clusters/user_spec.rb index fe2f6a293c2a3719868b55fab4874717b86a3ae4..e141d19ea5d9aa87a9311e9162c27a6abbd210c0 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