Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-04-10 15:09:36 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-04-10 15:09:36 +0300
commitc6a33b298229f9e04933be43d6176c476ef03012 (patch)
tree66b336ef374b813d6e9c7f6a19264060a1f23f91 /spec/features
parentc52b81f45762cb7f05a950689dfc6d51b197ea73 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/projects/navbar_spec.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/features/projects/navbar_spec.rb b/spec/features/projects/navbar_spec.rb
index 6dbcace5401..9dfdaf54a2f 100644
--- a/spec/features/projects/navbar_spec.rb
+++ b/spec/features/projects/navbar_spec.rb
@@ -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)