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 @@
%span.gl-badge.gl-bg-green-500.gl-text-white.gl-rounded-pill.gl-font-weight-bold.gl-py-1
= _('Next')
- if Feature.enabled?(:combined_menu, current_user, default_enabled: :yaml)
= render "layouts/nav/combined_menu"
- else
- if current_user
= render "layouts/nav/dashboard"
- 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
let(:project) { create(:project) }
before do
stub_feature_flags(combined_menu: false)
project.add_maintainer(user)
sign_in(user)
......
......@@ -9,6 +9,8 @@ RSpec.describe 'Admin Mode Logout', :js do
let(:user) { create(:admin) }
before do
stub_feature_flags(combined_menu: false)
gitlab_sign_in(user)
gitlab_enable_admin_mode_sign_in(user)
visit admin_root_path
......
......@@ -9,6 +9,8 @@ RSpec.describe 'Admin mode' do
let(:admin) { create(:admin) }
before do
stub_feature_flags(combined_menu: false)
stub_env('IN_MEMORY_APPLICATION_SETTINGS', 'false')
end
......
......@@ -4,6 +4,8 @@ require 'spec_helper'
RSpec.describe 'Dashboard Active Tab', :js do
before do
stub_feature_flags(combined_menu: false)
sign_in(create(:user))
end
......
......@@ -8,6 +8,8 @@ RSpec.describe 'The group dashboard' do
let(:user) { create(:user) }
before do
stub_feature_flags(combined_menu: false)
sign_in user
end
......
......@@ -3,6 +3,10 @@
require 'spec_helper'
RSpec.describe 'Dashboard shortcuts', :js do
before do
stub_feature_flags(combined_menu: false)
end
context 'logged in' do
let(:user) { create(:user) }
let(:project) { create(:project) }
......
......@@ -6,6 +6,8 @@ RSpec.describe 'Frequently visited items', :js do
let_it_be(:user) { create(:user) }
before do
stub_feature_flags(combined_menu: false)
sign_in(user)
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