diff options
author | Phil Hughes <me@iamphill.com> | 2017-09-01 08:41:31 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-09-06 14:54:17 +0100 |
commit | c56100b3ec26a0f5d71bb80f94c661674b3226b8 (patch) | |
tree | 37a6d9d31b278550cc6b6d948ad5629db9dffc17 /spec/features/admin/admin_active_tab_spec.rb | |
parent | 5d2b7aa200e0ce5a66672259d468be4ccc5f9124 (diff) | |
download | gitlab-ce-c56100b3ec26a0f5d71bb80f94c661674b3226b8.tar.gz |
Add top level items to fly-out navigation
This only appears when in the collapsed sidebar. If the sidebar is expanded, then these items are hidden & no fly-out navigation is displayed.
Closes #36294
Diffstat (limited to 'spec/features/admin/admin_active_tab_spec.rb')
-rw-r--r-- | spec/features/admin/admin_active_tab_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/features/admin/admin_active_tab_spec.rb b/spec/features/admin/admin_active_tab_spec.rb index 5ff791fc36a..1215908f5ea 100644 --- a/spec/features/admin/admin_active_tab_spec.rb +++ b/spec/features/admin/admin_active_tab_spec.rb @@ -14,8 +14,8 @@ RSpec.describe 'admin active tab' do shared_examples 'page has active sub tab' do |title| it "activates #{title} sub tab" do - expect(page).to have_selector('.sidebar-sub-level-items li.active', count: 1) - expect(page.find('.sidebar-sub-level-items li.active')).to have_content(title) + expect(page).to have_selector('.sidebar-sub-level-items > li.active', count: 2) + expect(page.all('.sidebar-sub-level-items > li.active')[1]).to have_content(title) end end |