Commit dd3d62b6 authored by Toon Claes's avatar Toon Claes

Make feature spec more robust

Ensure the correct "Public" radio is selected by choosing it on ID.
parent 681af5bc
...@@ -10,11 +10,10 @@ feature 'Admin updates settings', feature: true do ...@@ -10,11 +10,10 @@ feature 'Admin updates settings', feature: true do
end end
scenario 'Change visibility settings' do scenario 'Change visibility settings' do
first(:radio_button, 'Public').set(true) choose "application_setting_default_project_visibility_20"
click_button 'Save' click_button 'Save'
expect(page).to have_content "Application settings saved successfully" expect(page).to have_content "Application settings saved successfully"
expect(ApplicationSetting.current.default_project_visibility).to eq(Gitlab::VisibilityLevel::PUBLIC)
end end
scenario 'Change application settings' do scenario 'Change application settings' 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