diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-10 15:09:36 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-10 15:09:36 +0300 |
commit | c6a33b298229f9e04933be43d6176c476ef03012 (patch) | |
tree | 66b336ef374b813d6e9c7f6a19264060a1f23f91 /spec/features | |
parent | c52b81f45762cb7f05a950689dfc6d51b197ea73 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/projects/navbar_spec.rb | 17 |
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) |