diff --git a/ee/app/helpers/ee/projects_helper.rb b/ee/app/helpers/ee/projects_helper.rb index ff8e2acb221b774cde786e795b2d1553452a1330..a314a9cc45330aa44d8d24431107e6b8545e6de2 100644 --- a/ee/app/helpers/ee/projects_helper.rb +++ b/ee/app/helpers/ee/projects_helper.rb @@ -145,6 +145,7 @@ def merge_trains_available? def sidebar_security_paths %w[ projects/security/configuration#show + projects/security/vulnerabilities#show projects/security/dashboard#index projects/on_demand_scans#index projects/dependencies#index diff --git a/ee/changelogs/unreleased/217503-expand-security-and-compliance-on-vulnerabilities-show.yml b/ee/changelogs/unreleased/217503-expand-security-and-compliance-on-vulnerabilities-show.yml new file mode 100644 index 0000000000000000000000000000000000000000..a59be00175bbbfa331f2ed9942623d73ef3504b9 --- /dev/null +++ b/ee/changelogs/unreleased/217503-expand-security-and-compliance-on-vulnerabilities-show.yml @@ -0,0 +1,5 @@ +--- +title: Expand Security & Compliance tab when viewing Vulnerabilities Details page +merge_request: 35855 +author: +type: changed diff --git a/ee/spec/helpers/projects_helper_spec.rb b/ee/spec/helpers/projects_helper_spec.rb index 646613020a0c415fe591c4da68f7f2743994a13b..5e26d1b6aee3b8afe2e7eb43c3f09134ff09f938 100644 --- a/ee/spec/helpers/projects_helper_spec.rb +++ b/ee/spec/helpers/projects_helper_spec.rb @@ -138,6 +138,24 @@ 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 using RSpec::Parameterized::TableSyntax