Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
39d976cf
Commit
39d976cf
authored
Jun 08, 2017
by
Tim Zallmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added more negative checks for public project
parent
81b565ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
spec/features/explore/new_menu_spec.rb
spec/features/explore/new_menu_spec.rb
+19
-1
No files found.
spec/features/explore/new_menu_spec.rb
View file @
39d976cf
...
...
@@ -4,8 +4,8 @@ feature 'Top Plus Menu', feature: true, js: true do
let
(
:user
)
{
create
:user
}
let
(
:guest_user
)
{
create
:user
}
let
(
:group
)
{
create
(
:group
)
}
let
(
:public_group
)
{
create
(
:group
,
:public
)
}
let
(
:project
)
{
create
(
:project
,
:repository
,
creator:
user
,
namespace:
user
.
namespace
)
}
let
(
:public_project
)
{
create
(
:project
,
:public
)
}
before
do
group
.
add_owner
(
user
)
...
...
@@ -127,6 +127,24 @@ feature 'Top Plus Menu', feature: true, js: true do
expect
(
find
(
'.header-new.dropdown'
)).
not_to
have_selector
(
'.header-new-project-snippet'
)
end
scenario
'public project has no New Issue Button'
do
visit
namespace_project_path
(
public_project
.
namespace
,
public_project
)
hasnot_topmenuitem
(
"New issue"
)
end
scenario
'public project has no New merge request menu item'
do
visit
namespace_project_path
(
public_project
.
namespace
,
public_project
)
hasnot_topmenuitem
(
"New merge request"
)
end
scenario
'public project has no New project snippet menu item'
do
visit
namespace_project_path
(
public_project
.
namespace
,
public_project
)
expect
(
find
(
'.header-new.dropdown'
)).
not_to
have_selector
(
'.header-new-project-snippet'
)
end
scenario
'has no New subgroup menu item'
do
visit
group_path
(
group
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment