diff options
author | Lukas Eipert <leipert@gitlab.com> | 2018-05-16 14:16:33 +0300 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2018-05-16 14:16:33 +0300 |
commit | 762672fd26a0ae804e57376587b16b99cb3a32a1 (patch) | |
tree | c777983cd3c3405ff5efd3714ff4803c9a08ceed /spec | |
parent | f05ff2d93d111c39613a2c928dc1dc809d7e2c5d (diff) |
Project Sidebar: Split CI/CD into CI/CD and Operations
Diffstat (limited to 'spec')
-rw-r--r-- | spec/views/layouts/nav/sidebar/_project.html.haml_spec.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/spec/views/layouts/nav/sidebar/_project.html.haml_spec.rb b/spec/views/layouts/nav/sidebar/_project.html.haml_spec.rb index f28bf430f02..98d4456b277 100644 --- a/spec/views/layouts/nav/sidebar/_project.html.haml_spec.rb +++ b/spec/views/layouts/nav/sidebar/_project.html.haml_spec.rb @@ -36,16 +36,17 @@ describe 'layouts/nav/sidebar/_project' do expect(rendered).to have_text 'Registry' end - it 'highlights only one tab' do + it 'highlights sidebar item and flyout' do render - expect(rendered).to have_css('.active', count: 1) + expect(rendered).to have_css('.sidebar-top-level-items > li.active', count: 1) + expect(rendered).to have_css('.is-fly-out-only > li.active', count: 1) end - it 'highlights container registry tab only' do + it 'highlights container registry tab' do render - expect(rendered).to have_css('.active', text: 'Registry') + expect(rendered).to have_css('.sidebar-top-level-items > li.active', text: 'Registry') end end end |