Commit c899740a authored by Denys Mishunov's avatar Denys Mishunov Committed by Vitaly Slobodin

Removed "Lists" entry from Requirements nav item [RUN ALL RSPEC] [RUN AS-IF-FOSS]

parent 6af841ba
---
name: project_sidebar_refactor
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/58638
rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/326111
milestone: '13.11'
type: development
group: group::editor
default_enabled: false
......@@ -6,6 +6,7 @@
= sprite_icon('requirements')
%span.nav-item-name
= _('Requirements')
- if Feature.disabled?(:project_sidebar_refactor)
%ul.sidebar-sub-level-items
= nav_link(path: 'requirements#index', html_options: { class: "fly-out-top-item" } ) do
= link_to project_requirements_management_requirements_path(project) do
......
......@@ -81,6 +81,29 @@ RSpec.describe 'Project navbar' do
context 'when requirements is available' do
before do
stub_licensed_features(requirements: true)
end
context 'with flag enabled' do
before do
stub_feature_flags(project_sidebar_refactor: true)
insert_after_nav_item(
_('Merge requests'),
new_nav_item: {
nav_item: _('Requirements'),
nav_sub_items: []
}
)
visit project_path(project)
end
it_behaves_like 'verified navigation bar'
end
context 'with flag disabled' do
before do
stub_feature_flags(project_sidebar_refactor: false)
insert_after_nav_item(
_('Merge requests'),
......@@ -95,4 +118,5 @@ RSpec.describe 'Project navbar' do
it_behaves_like 'verified navigation bar'
end
end
end
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