debian-mirror-gitlab/spec/support/shared_examples/views/nav_sidebar.rb
2019-07-07 11:18:12 +05:30

11 lines
332 B
Ruby

# frozen_string_literal: true
shared_examples 'has nav sidebar' do
it 'has collapsed nav sidebar on mobile' do
render
expect(rendered).to have_selector('.nav-sidebar')
expect(rendered).not_to have_selector('.sidebar-collapsed-desktop')
expect(rendered).not_to have_selector('.sidebar-expanded-mobile')
end
end