Commit f479e272 authored by Kerri Miller's avatar Kerri Miller

Merge branch '324086-feature-flag-enable-combined-menu-for-top-nav' into 'master'

[Feature flag] Add :combined_menu feature flag [RUN ALL RSPEC] [RUN AS-IF-FOSS]

See merge request gitlab-org/gitlab!56249
parents 474cab0e 3a010ebb
...@@ -19,6 +19,9 @@ ...@@ -19,6 +19,9 @@
%span.gl-badge.gl-bg-green-500.gl-text-white.gl-rounded-pill.gl-font-weight-bold.gl-py-1 %span.gl-badge.gl-bg-green-500.gl-text-white.gl-rounded-pill.gl-font-weight-bold.gl-py-1
= _('Next') = _('Next')
- if Feature.enabled?(:combined_menu, current_user, default_enabled: :yaml)
= render "layouts/nav/combined_menu"
- else
- if current_user - if current_user
= render "layouts/nav/dashboard" = render "layouts/nav/dashboard"
- else - else
......
%button{ type: 'button', data: { toggle: "dropdown" } }
= sprite_icon('ellipsis_v')
= _('Projects')
---
name: combined_menu
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/56249
rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/321904
milestone: '13.10'
type: development
group: group::editor
default_enabled: false
...@@ -7,6 +7,8 @@ RSpec.describe 'Operations dropdown navbar EE' do ...@@ -7,6 +7,8 @@ RSpec.describe 'Operations dropdown navbar EE' do
let(:project) { create(:project) } let(:project) { create(:project) }
before do before do
stub_feature_flags(combined_menu: false)
project.add_maintainer(user) project.add_maintainer(user)
sign_in(user) sign_in(user)
......
...@@ -9,6 +9,8 @@ RSpec.describe 'Admin Mode Logout', :js do ...@@ -9,6 +9,8 @@ RSpec.describe 'Admin Mode Logout', :js do
let(:user) { create(:admin) } let(:user) { create(:admin) }
before do before do
stub_feature_flags(combined_menu: false)
gitlab_sign_in(user) gitlab_sign_in(user)
gitlab_enable_admin_mode_sign_in(user) gitlab_enable_admin_mode_sign_in(user)
visit admin_root_path visit admin_root_path
......
...@@ -9,6 +9,8 @@ RSpec.describe 'Admin mode' do ...@@ -9,6 +9,8 @@ RSpec.describe 'Admin mode' do
let(:admin) { create(:admin) } let(:admin) { create(:admin) }
before do before do
stub_feature_flags(combined_menu: false)
stub_env('IN_MEMORY_APPLICATION_SETTINGS', 'false') stub_env('IN_MEMORY_APPLICATION_SETTINGS', 'false')
end end
......
...@@ -4,6 +4,8 @@ require 'spec_helper' ...@@ -4,6 +4,8 @@ require 'spec_helper'
RSpec.describe 'Dashboard Active Tab', :js do RSpec.describe 'Dashboard Active Tab', :js do
before do before do
stub_feature_flags(combined_menu: false)
sign_in(create(:user)) sign_in(create(:user))
end end
......
...@@ -8,6 +8,8 @@ RSpec.describe 'The group dashboard' do ...@@ -8,6 +8,8 @@ RSpec.describe 'The group dashboard' do
let(:user) { create(:user) } let(:user) { create(:user) }
before do before do
stub_feature_flags(combined_menu: false)
sign_in user sign_in user
end end
......
...@@ -3,6 +3,10 @@ ...@@ -3,6 +3,10 @@
require 'spec_helper' require 'spec_helper'
RSpec.describe 'Dashboard shortcuts', :js do RSpec.describe 'Dashboard shortcuts', :js do
before do
stub_feature_flags(combined_menu: false)
end
context 'logged in' do context 'logged in' do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:project) { create(:project) } let(:project) { create(:project) }
......
...@@ -6,6 +6,8 @@ RSpec.describe 'Frequently visited items', :js do ...@@ -6,6 +6,8 @@ RSpec.describe 'Frequently visited items', :js do
let_it_be(:user) { create(:user) } let_it_be(:user) { create(:user) }
before do before do
stub_feature_flags(combined_menu: false)
sign_in(user) sign_in(user)
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