summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-11-29 00:39:50 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-11-29 00:39:50 -0800
commitcf8b3692cda859e93f56e07d5ecd496578597ab9 (patch)
tree8a81e8fca92b9faa630649e0f6d284f16d060249 /features
parenta0aa0212a9286b26457a5b44674f81b26f6bc097 (diff)
parente0a9ffcdaa0bef73caee5a502cabe1b4d8767f1b (diff)
downloadgitlab-ce-cf8b3692cda859e93f56e07d5ecd496578597ab9.tar.gz
Merge pull request #2105 from jouve/improve_admin_views
Improve admin section
Diffstat (limited to 'features')
-rw-r--r--features/admin/active_tab.feature5
-rw-r--r--features/steps/admin/admin_active_tab.rb4
2 files changed, 9 insertions, 0 deletions
diff --git a/features/admin/active_tab.feature b/features/admin/active_tab.feature
index fce85ce9901..226d3d5d5b5 100644
--- a/features/admin/active_tab.feature
+++ b/features/admin/active_tab.feature
@@ -12,6 +12,11 @@ Feature: Admin active tab
Then the active main tab should be Projects
And no other main tabs should be active
+ Scenario: On Admin Groups
+ Given I visit admin groups page
+ Then the active main tab should be Groups
+ And no other main tabs should be active
+
Scenario: On Admin Users
Given I visit admin users page
Then the active main tab should be Users
diff --git a/features/steps/admin/admin_active_tab.rb b/features/steps/admin/admin_active_tab.rb
index 29290892823..05a9a686e01 100644
--- a/features/steps/admin/admin_active_tab.rb
+++ b/features/steps/admin/admin_active_tab.rb
@@ -11,6 +11,10 @@ class AdminActiveTab < Spinach::FeatureSteps
ensure_active_main_tab('Projects')
end
+ Then 'the active main tab should be Groups' do
+ ensure_active_main_tab('Groups')
+ end
+
Then 'the active main tab should be Users' do
ensure_active_main_tab('Users')
end