Commit b8826ce7 authored by Mayra Cabrera's avatar Mayra Cabrera

Fixes cluster feature broken specs

parent 744e1db3
= form_for @cluster, url: namespace_project_cluster_path(@project.namespace, @project, @cluster), as: :cluster do |field|
= form_for @cluster, url: namespace_project_cluster_path(@project.namespace, @project, @cluster), as: :cluster, html: { class: 'cluster_integration_form' } do |field|
= form_errors(@cluster)
.form-group.append-bottom-20
%h5= s_('ClusterIntegration|Integration status')
......
......@@ -46,7 +46,9 @@ feature 'EE Clusters' do
before do
click_link 'default-cluster'
fill_in 'cluster_environment_scope', with: 'production/*'
click_button 'Save changes'
within '.cluster_integration_form' do
click_button 'Save changes'
end
end
it 'user sees a cluster details page' do
......@@ -104,7 +106,7 @@ feature 'EE Clusters' do
end
it 'user sees a cluster details page' do
expect(page).to have_content('Enable cluster integration')
expect(page).to have_content('Cluster integration is enabled for this project')
expect(page.find_field('cluster[environment_scope]').value).to eq('staging/*')
end
end
......@@ -113,7 +115,9 @@ feature 'EE Clusters' do
before do
click_link 'default-cluster'
fill_in 'cluster_environment_scope', with: 'production/*'
click_button 'Save changes'
within ".cluster_integration_form" do
click_button 'Save changes'
end
end
it 'user sees a cluster details page' do
......
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