Commit 6625d605 authored by blackst0ne's avatar blackst0ne

Refactor specs

parent 93e204ea
...@@ -16,6 +16,15 @@ feature "New project", feature: true do ...@@ -16,6 +16,15 @@ feature "New project", feature: true do
expect(find_field("project_visibility_level_#{level}")).to be_checked expect(find_field("project_visibility_level_#{level}")).to be_checked
end end
it 'saves visibility level on validation error' do
visit new_project_path
choose(key)
click_button('Create project')
expect(find_field("project_visibility_level_#{level}")).to be_checked
end
end end
end end
...@@ -60,12 +69,6 @@ feature "New project", feature: true do ...@@ -60,12 +69,6 @@ feature "New project", feature: true do
expect(namespace.text).to eq group.name expect(namespace.text).to eq group.name
end 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 end
end end
......
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