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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
cc6ca0f3
Commit
cc6ca0f3
authored
Apr 08, 2020
by
Gilang Gumilar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add navbar spec
parent
a1e524d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
spec/features/projects/navbar_spec.rb
spec/features/projects/navbar_spec.rb
+17
-0
No files found.
spec/features/projects/navbar_spec.rb
View file @
cc6ca0f3
...
...
@@ -4,6 +4,7 @@ require 'spec_helper'
describe
'Project navbar'
do
include
NavbarStructureHelper
include
WaitForRequests
include_context
'project navbar structure'
...
...
@@ -21,6 +22,22 @@ describe 'Project navbar' do
end
end
context
'when value stream is available'
do
before
do
visit
project_path
(
project
)
end
it
'redirects to value stream when Analytics item is clicked'
do
page
.
within
(
'.sidebar-top-level-items'
)
do
find
(
'[data-qa-selector=analytics_anchor]'
).
click
end
wait_for_requests
expect
(
page
).
to
have_current_path
(
project_cycle_analytics_path
(
project
))
end
end
context
'when pages are available'
do
before
do
allow
(
Gitlab
.
config
.
pages
).
to
receive
(
:enabled
).
and_return
(
true
)
...
...
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