Commit c9d46fa8 authored by Tim Zallmann's avatar Tim Zallmann Committed by Tim

Fixing more broken unscoped tests

parent fbe0186a
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
%li.divider %li.divider
%li.dropdown-bold-header GitLab %li.dropdown-bold-header GitLab
- if @project - if @project && @project.namespace
- create_project_issue = can?(current_user, :create_issue, @project) - create_project_issue = can?(current_user, :create_issue, @project)
- merge_project = can?(current_user, :create_merge_request, @project) ? @project : (current_user && current_user.fork_of(@project)) - merge_project = can?(current_user, :create_merge_request, @project) ? @project : (current_user && current_user.fork_of(@project))
- create_project_snippet = can?(current_user, :create_project_snippet, @project) - create_project_snippet = can?(current_user, :create_project_snippet, @project)
......
...@@ -24,7 +24,9 @@ feature 'Admin Groups', feature: true do ...@@ -24,7 +24,9 @@ feature 'Admin Groups', feature: true do
it 'creates new group' do it 'creates new group' do
visit admin_groups_path visit admin_groups_path
page.within '#content-body' do
click_link "New group" click_link "New group"
end
path_component = 'gitlab' path_component = 'gitlab'
group_name = 'GitLab group name' group_name = 'GitLab group name'
group_description = 'Description of group for GitLab' group_description = 'Description of group for GitLab'
......
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