diff options
Diffstat (limited to 'spec/frontend/fixtures/startup_css.rb')
-rw-r--r-- | spec/frontend/fixtures/startup_css.rb | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/spec/frontend/fixtures/startup_css.rb b/spec/frontend/fixtures/startup_css.rb index bd2d63a1827..5b09e1c9495 100644 --- a/spec/frontend/fixtures/startup_css.rb +++ b/spec/frontend/fixtures/startup_css.rb @@ -16,7 +16,6 @@ RSpec.describe 'Startup CSS fixtures', type: :controller do before do # We want vNext badge to be included and com/canary don't remove/hide any other elements. # This is why we're turning com and canary on by default for now. - allow(Gitlab).to receive(:com?).and_return(true) allow(Gitlab).to receive(:canary?).and_return(true) sign_in(user) end @@ -41,12 +40,12 @@ RSpec.describe 'Startup CSS fixtures', type: :controller do expect(response).to be_successful end - # This Feature Flag is on by default - # This ensures that the correct css is generated - # When the feature flag is on, the general startup will capture it - # This will be removed as part of https://gitlab.com/gitlab-org/gitlab/-/issues/339348 - it "startup_css/project-#{type}-search-ff-off.html" do - stub_feature_flags(new_header_search: false) + # This Feature Flag is off by default + # This ensures that the correct css is generated for super sidebar + # When the feature flag is off, the general startup will capture it + it "startup_css/project-#{type}-super-sidebar.html" do + stub_feature_flags(super_sidebar_nav: true) + user.update!(use_new_navigation: true) get :show, params: { namespace_id: project.namespace.to_param, @@ -57,11 +56,11 @@ RSpec.describe 'Startup CSS fixtures', type: :controller do end end - describe ProjectsController, '(Startup CSS fixtures)', type: :controller do + describe ProjectsController, '(Startup CSS fixtures)', :saas, type: :controller do it_behaves_like 'startup css project fixtures', 'general' end - describe ProjectsController, '(Startup CSS fixtures)', type: :controller do + describe ProjectsController, '(Startup CSS fixtures)', :saas, type: :controller do before do user.update!(theme_id: 11) end |