diff options
Diffstat (limited to 'spec/features/snippets/show_spec.rb')
-rw-r--r-- | spec/features/snippets/show_spec.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/features/snippets/show_spec.rb b/spec/features/snippets/show_spec.rb index dc2fcdd7305..d6ff8c066c4 100644 --- a/spec/features/snippets/show_spec.rb +++ b/spec/features/snippets/show_spec.rb @@ -28,11 +28,10 @@ RSpec.describe 'Snippet', :js, feature_category: :source_code_management do it_behaves_like 'a dashboard page with sidebar', :dashboard_snippets_path, :snippets context 'when unauthenticated' do - it 'does not have the sidebar' do + it 'shows the "Explore" sidebar' do visit snippet_path(snippet) - expect(page).to have_title _('Snippets') - expect(page).not_to have_css('aside.nav-sidebar') + expect(page).to have_css('aside.nav-sidebar[aria-label="Explore"]') end end |