Make feature spec more robust

Ensure the correct "Public" radio is selected by choosing it on ID.
This commit is contained in:
Toon Claes 2017-03-20 22:05:02 +01:00
parent 681af5bc4f
commit dd3d62b626
1 changed files with 1 additions and 2 deletions

View File

@ -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