Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
963a3114
Commit
963a3114
authored
Nov 12, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Active tab tests for admin broadcast messages
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
90d59939
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
features/admin/active_tab.feature
features/admin/active_tab.feature
+5
-0
features/steps/admin/admin_active_tab.rb
features/steps/admin/admin_active_tab.rb
+4
-0
features/steps/shared/paths.rb
features/steps/shared/paths.rb
+4
-0
No files found.
features/admin/active_tab.feature
View file @
963a3114
...
...
@@ -27,6 +27,11 @@ Feature: Admin active tab
Then
the active main tab should be Logs
And
no other main tabs should be active
Scenario
:
On Admin Messages
Given
I visit admin messages page
Then
the active main tab should be Messages
And
no other main tabs should be active
Scenario
:
On Admin Hooks
Given
I visit admin hooks page
Then
the active main tab should be Hooks
...
...
features/steps/admin/admin_active_tab.rb
View file @
963a3114
...
...
@@ -30,4 +30,8 @@ class AdminActiveTab < Spinach::FeatureSteps
Then
'the active main tab should be Resque'
do
ensure_active_main_tab
(
'Background Jobs'
)
end
Then
'the active main tab should be Messages'
do
ensure_active_main_tab
(
'Messages'
)
end
end
features/steps/shared/paths.rb
View file @
963a3114
...
...
@@ -105,6 +105,10 @@ module SharedPaths
visit
admin_logs_path
end
step
'I visit admin messages page'
do
visit
admin_broadcast_messages_path
end
step
'I visit admin hooks page'
do
visit
admin_hooks_path
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment