summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/features/projects/new_project_spec.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/features/projects/new_project_spec.rb b/spec/features/projects/new_project_spec.rb
index 651a46f62b1..1dc1179c795 100644
--- a/spec/features/projects/new_project_spec.rb
+++ b/spec/features/projects/new_project_spec.rb
@@ -53,7 +53,6 @@ feature "New project", feature: true do
click_button('Create project')
expect(page).to have_css '.project-edit-errors .alert.alert-danger'
- expect(find("[name='project[visibility_level]'][checked].option-title").value).to eq('Internal')
end
it "selects the group namespace" do
@@ -61,6 +60,12 @@ feature "New project", feature: true do
expect(namespace.text).to eq group.name
end
+
+ it 'selects the visibility level' do
+ level = Gitlab::VisibilityLevel.options['Internal']
+
+ expect(find_field("project_visibility_level_#{level}")).to be_checked
+ end
end
end
end