Commit d868d313 authored by charlie ablett's avatar charlie ablett

Merge branch '217503-expand-security-and-compliance-on-vulnerabilities-show' into 'master'

Expand Security & Compliance on Vulnerabilities Details page

See merge request gitlab-org/gitlab!35855
parents a1a83965 d94bd336
...@@ -145,6 +145,7 @@ module EE ...@@ -145,6 +145,7 @@ module EE
def sidebar_security_paths def sidebar_security_paths
%w[ %w[
projects/security/configuration#show projects/security/configuration#show
projects/security/vulnerabilities#show
projects/security/dashboard#index projects/security/dashboard#index
projects/on_demand_scans#index projects/on_demand_scans#index
projects/dependencies#index projects/dependencies#index
......
---
title: Expand Security & Compliance tab when viewing Vulnerabilities Details page
merge_request: 35855
author:
type: changed
...@@ -138,6 +138,24 @@ RSpec.describe ProjectsHelper do ...@@ -138,6 +138,24 @@ RSpec.describe ProjectsHelper do
end end
end end
describe '#sidebar_security_paths' do
let(:expected_security_paths) do
%w[
projects/security/configuration#show
projects/security/vulnerabilities#show
projects/security/dashboard#index
projects/on_demand_scans#index
projects/dependencies#index
projects/licenses#index
projects/threat_monitoring#show
]
end
subject { helper.sidebar_security_paths }
it { is_expected.to eq(expected_security_paths) }
end
describe '#get_project_nav_tabs' do describe '#get_project_nav_tabs' do
using RSpec::Parameterized::TableSyntax using RSpec::Parameterized::TableSyntax
......
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