diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2016-04-21 11:48:28 +0000 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2016-04-21 11:48:28 +0000 |
commit | f4859b93a5731a5f69340aed26ff7cf91424abdf (patch) | |
tree | b3135f1c57556fcdd73919d864af75feb9fffa30 /features | |
parent | 7f3a22a7b3e9e10b143e82e2c697fa2531992b5b (diff) | |
parent | f93b0f3ea25af48f9f165cf6c0e3c2fb359bca35 (diff) | |
download | gitlab-ce-f4859b93a5731a5f69340aed26ff7cf91424abdf.tar.gz |
Merge branch 'top-navigation-concept' into 'master'
Implement top navigation for profile area
Main idea is to keep left sidebar static so user is not confused by
changing context. Instead we put changing navigation with changing
content in one main block. I used profile area as a simplest way to
implement and test this concept. Your feedback is welcome in comments
For https://gitlab.com/gitlab-org/gitlab-ce/issues/14354#note_4878536
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
See merge request !3824
Diffstat (limited to 'features')
-rw-r--r-- | features/steps/profile/active_tab.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/features/steps/profile/active_tab.rb b/features/steps/profile/active_tab.rb index 4724a326277..3b59089a093 100644 --- a/features/steps/profile/active_tab.rb +++ b/features/steps/profile/active_tab.rb @@ -22,4 +22,8 @@ class Spinach::Features::ProfileActiveTab < Spinach::FeatureSteps step 'the active main tab should be Audit Log' do ensure_active_main_tab('Audit Log') end + + def ensure_active_main_tab(content) + expect(find('.layout-nav li.active')).to have_content(content) + end end |