Fix merge trains spec

parent cad5dbbc
...@@ -54,7 +54,7 @@ RSpec.describe 'Disable Merge Trains Setting', :js do ...@@ -54,7 +54,7 @@ RSpec.describe 'Disable Merge Trains Setting', :js do
include_examples 'loads correct checkbox state' include_examples 'loads correct checkbox state'
it "checking merge trains checkbox doesn't affect merge pipelines checkbox" do it "checking merge trains checkbox doesn't affect merge pipelines checkbox" do
check('Enable merge trains.') check('Enable merge trains')
expect(find('#project_merge_trains_enabled')).to be_checked expect(find('#project_merge_trains_enabled')).to be_checked
expect(find('#project_merge_pipelines_enabled')).not_to be_disabled expect(find('#project_merge_pipelines_enabled')).not_to be_disabled
...@@ -69,7 +69,7 @@ RSpec.describe 'Disable Merge Trains Setting', :js do ...@@ -69,7 +69,7 @@ RSpec.describe 'Disable Merge Trains Setting', :js do
end end
it 'unchecking merge pipelines checkbox unchecks merge trains checkbox if it was previously checked' do it 'unchecking merge pipelines checkbox unchecks merge trains checkbox if it was previously checked' do
check('Enable merge trains.') check('Enable merge trains')
uncheck('Enable merged results pipelines') uncheck('Enable merged results pipelines')
expect(find('#project_merge_pipelines_enabled')).not_to be_checked expect(find('#project_merge_pipelines_enabled')).not_to be_checked
...@@ -120,7 +120,7 @@ RSpec.describe 'Disable Merge Trains Setting', :js do ...@@ -120,7 +120,7 @@ RSpec.describe 'Disable Merge Trains Setting', :js do
end end
it "unchecking merge trains checkbox doesn't affect merge pipelines checkbox" do it "unchecking merge trains checkbox doesn't affect merge pipelines checkbox" do
uncheck('Enable merge trains.') uncheck('Enable merge trains')
expect(find('#project_merge_trains_enabled')).not_to be_checked expect(find('#project_merge_trains_enabled')).not_to be_checked
expect(find('#project_merge_pipelines_enabled')).not_to be_disabled expect(find('#project_merge_pipelines_enabled')).not_to be_disabled
......
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