diff options
author | Dmitriy Zaporozhets <dzaporozhets@gitlab.com> | 2015-04-15 09:44:30 +0000 |
---|---|---|
committer | Dmitriy Zaporozhets <dzaporozhets@gitlab.com> | 2015-04-15 09:44:30 +0000 |
commit | 4efbf9b6f5996a07bc4557a611f2a91e5ed453f0 (patch) | |
tree | 78c6caf6f6a95b22496a1aed0e54e6dc6097bc6c | |
parent | ac5af61499a8612ef6a51b2bebd18c4c1a083583 (diff) | |
parent | 5d1ab47bd2dc80e8c5237416405009786ef58629 (diff) | |
download | gitlab-ce-4efbf9b6f5996a07bc4557a611f2a91e5ed453f0.tar.gz |
Merge branch 'revert-help-link' into 'master'
Revert help link
Revert for https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/483
cc @douwe
See merge request !1776
-rw-r--r-- | app/views/layouts/nav/_dashboard.html.haml | 5 | ||||
-rw-r--r-- | features/dashboard/active_tab.feature | 5 | ||||
-rw-r--r-- | features/steps/dashboard/active_tab.rb | 3 | ||||
-rw-r--r-- | features/steps/shared/paths.rb | 4 |
4 files changed, 17 insertions, 0 deletions
diff --git a/app/views/layouts/nav/_dashboard.html.haml b/app/views/layouts/nav/_dashboard.html.haml index 511c0694b8a..e4f630c6a18 100644 --- a/app/views/layouts/nav/_dashboard.html.haml +++ b/app/views/layouts/nav/_dashboard.html.haml @@ -31,3 +31,8 @@ %span Merge Requests %span.count= current_user.assigned_merge_requests.opened.count + = nav_link(controller: :help) do + = link_to help_path, title: 'Help' do + %i.fa.fa-question-circle + %span + Help diff --git a/features/dashboard/active_tab.feature b/features/dashboard/active_tab.feature index c17dfd07063..08b87808f33 100644 --- a/features/dashboard/active_tab.feature +++ b/features/dashboard/active_tab.feature @@ -17,3 +17,8 @@ Feature: Dashboard Active Tab Given I visit dashboard merge requests page Then the active main tab should be Merge Requests And no other main tabs should be active + + Scenario: On Dashboard Help + Given I visit dashboard help page + Then the active main tab should be Help + And no other main tabs should be active diff --git a/features/steps/dashboard/active_tab.rb b/features/steps/dashboard/active_tab.rb index 19ff77b9fe6..0e2c04fb299 100644 --- a/features/steps/dashboard/active_tab.rb +++ b/features/steps/dashboard/active_tab.rb @@ -3,4 +3,7 @@ class Spinach::Features::DashboardActiveTab < Spinach::FeatureSteps include SharedPaths include SharedActiveTab + step 'the active main tab should be Help' do + ensure_active_main_tab('Help') + end end diff --git a/features/steps/shared/paths.rb b/features/steps/shared/paths.rb index 8ce17b94142..e3cf1b92cda 100644 --- a/features/steps/shared/paths.rb +++ b/features/steps/shared/paths.rb @@ -83,6 +83,10 @@ module SharedPaths visit search_path end + step 'I visit dashboard help page' do + visit help_path + end + step 'I visit dashboard groups page' do visit dashboard_groups_path end |