diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2016-05-24 02:31:06 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2016-05-24 02:31:06 +0300 |
commit | 16ca3ee636a50c81674309bb95e067d3faf56bb6 (patch) | |
tree | 8ecc4a559b4ee2ba96c3015ec2ea7fefa9a3578e /features/steps/admin | |
parent | 438b186a99d528992cb191bdfc1f509de51f942f (diff) | |
parent | 510b5c5f396711b0bb45bad0a25da3a891583ebc (diff) |
Merge branch 'project-navigation-redesign' into 'master'
Project navigation redesign
Based on !3980. Part of #14838. This MR targets on desktop version. Mobile version improvements will be in separate merge request.
Part of #17522
cc @jschatz1
See merge request !4053
Diffstat (limited to 'features/steps/admin')
-rw-r--r-- | features/steps/admin/active_tab.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/features/steps/admin/active_tab.rb b/features/steps/admin/active_tab.rb index 90d13abdb13..f2db1801389 100644 --- a/features/steps/admin/active_tab.rb +++ b/features/steps/admin/active_tab.rb @@ -1,7 +1,7 @@ class Spinach::Features::AdminActiveTab < Spinach::FeatureSteps include SharedAuthentication include SharedPaths - include SharedActiveTab + include SharedSidebarActiveTab step 'the active main tab should be Home' do ensure_active_main_tab('Overview') @@ -34,4 +34,12 @@ class Spinach::Features::AdminActiveTab < Spinach::FeatureSteps step 'the active main tab should be Messages' do ensure_active_main_tab('Messages') end + + step 'no other main tabs should be active' do + expect(page).to have_selector('.nav-sidebar > li.active', count: 1) + end + + def ensure_active_main_tab(content) + expect(find('.nav-sidebar > li.active')).to have_content(content) + end end |