Skip to content
Snippets Groups Projects
Commit dd3d62b6 authored by Toon Claes's avatar Toon Claes
Browse files

Make feature spec more robust

Ensure the correct "Public" radio is selected by choosing it on ID.
parent 681af5bc
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -10,11 +10,10 @@ feature 'Admin updates settings', feature: true do
end
 
scenario 'Change visibility settings' do
first(:radio_button, 'Public').set(true)
choose "application_setting_default_project_visibility_20"
click_button 'Save'
 
expect(page).to have_content "Application settings saved successfully"
expect(ApplicationSetting.current.default_project_visibility).to eq(Gitlab::VisibilityLevel::PUBLIC)
end
 
scenario 'Change application settings' do
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment