Commit 0c387f34 authored by Martin Wortschack's avatar Martin Wortschack

Merge branch '210316-rearrange-project-level-analytics-sidebar-menu' into 'master'

Make "Value Stream" the top item in project-level analytics sidebar menu

Closes #210316

See merge request gitlab-org/gitlab!27279
parents bcbfc481 cc6ca0f3
---
title: Make "Value Stream" the default page that appears when clicking the project-level "Analytics" sidebar item.
merge_request: 27279
author: Gilang Gumilar
type: added
......@@ -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)
......
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