diff options
author | Toon Claes <toon@gitlab.com> | 2017-03-20 22:05:02 +0100 |
---|---|---|
committer | Toon Claes <toon@gitlab.com> | 2017-03-20 22:05:02 +0100 |
commit | dd3d62b626f97800e9e72834455def675a879528 (patch) | |
tree | 4de7e8e25b08b3a7438ae21a9c3b60f1be6d1ec1 | |
parent | 681af5bc4fe646a981c1d0bbbeddef00f5cee3b8 (diff) | |
download | gitlab-ce-dd3d62b626f97800e9e72834455def675a879528.tar.gz |
Make feature spec more robust
Ensure the correct "Public" radio is selected by choosing it on ID.
-rw-r--r-- | spec/features/admin/admin_settings_spec.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/features/admin/admin_settings_spec.rb b/spec/features/admin/admin_settings_spec.rb index b54ba9f5f88..b268fbd9521 100644 --- a/spec/features/admin/admin_settings_spec.rb +++ b/spec/features/admin/admin_settings_spec.rb @@ -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 |