diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-19 14:01:45 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-19 14:01:45 +0300 |
commit | 9297025d0b7ddf095eb618dfaaab2ff8f2018d8b (patch) | |
tree | 865198c01d1824a9b098127baa3ab980c9cd2c06 /spec/views/layouts/fullscreen.html.haml_spec.rb | |
parent | 6372471f43ee03c05a7c1f8b0c6ac6b8a7431dbe (diff) |
Add latest changes from gitlab-org/gitlab@16-7-stable-eev16.7.0-rc42
Diffstat (limited to 'spec/views/layouts/fullscreen.html.haml_spec.rb')
-rw-r--r-- | spec/views/layouts/fullscreen.html.haml_spec.rb | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/spec/views/layouts/fullscreen.html.haml_spec.rb b/spec/views/layouts/fullscreen.html.haml_spec.rb index 2309e885b75..c763b53ac6c 100644 --- a/spec/views/layouts/fullscreen.html.haml_spec.rb +++ b/spec/views/layouts/fullscreen.html.haml_spec.rb @@ -4,8 +4,6 @@ require 'spec_helper' RSpec.describe 'layouts/fullscreen' do let_it_be(:template) { 'layouts/fullscreen' } - let_it_be(:top_nav_partial) { 'layouts/header/_default' } - let_it_be(:top_nav_responsive_partial) { 'layouts/nav/_top_nav_responsive' } let_it_be(:user) { create(:user) } @@ -27,58 +25,6 @@ RSpec.describe 'layouts/fullscreen' do expect(rendered).to have_selector(".flash-container.flash-container-no-margin") end - it 'renders top nav' do - render - - expect(view).to render_template(top_nav_partial) - expect(view).to render_template(top_nav_responsive_partial) - end - it_behaves_like 'a layout which reflects the application theme setting' it_behaves_like 'a layout which reflects the preferred language' - - describe 'sidebar' do - context 'when nav is set' do - before do - allow(view).to receive(:nav).and_return("admin") - render - end - - it 'renders the sidebar' do - expect(rendered).to render_template("layouts/nav/sidebar/_admin") - expect(rendered).to have_selector("aside.nav-sidebar") - end - - it 'adds the proper classes' do - expect(rendered).to have_selector(".layout-page.gl-mt-0\\!") - end - end - - describe 'when nav is not set' do - before do - allow(view).to receive(:nav).and_return(nil) - render - end - - it 'does not render the sidebar' do - expect(rendered).not_to render_template("layouts/nav/sidebar/_admin") - expect(rendered).not_to have_selector("aside.nav-sidebar") - end - - it 'not add classes' do - expect(rendered).not_to have_selector(".layout-page.gl-mt-0\\!") - end - end - end - - context 'when minimal is set' do - subject { render(template: template, formats: :html, locals: { minimal: true }) } - - it 'does not render top nav' do - subject - - expect(view).not_to render_template(top_nav_partial) - expect(view).not_to render_template(top_nav_responsive_partial) - end - end end |