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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
1f6ebcb9
Commit
1f6ebcb9
authored
Aug 27, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests for group active tab
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
f790206a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
0 deletions
+47
-0
features/group_active_tab.feature
features/group_active_tab.feature
+18
-0
features/steps/group_active_tab.rb
features/steps/group_active_tab.rb
+29
-0
No files found.
features/group_active_tab.feature
0 → 100644
View file @
1f6ebcb9
Feature
:
Group Active Tab
Background
:
Given
I sign in as
"John Doe"
And
"John Doe"
is owner of group
"Owned"
When
I visit group
"Owned"
settings page
Scenario
:
On Audit events
When
I go to
"Audit Events"
Then
the active sub nav should be Audit Events
And
no other sub navs should be active
And
the active main tab should be Settings
Scenario
:
On Web Hooks
When
I go to
"Web Hooks"
Then
the active sub nav should be Web Hooks
And
no other sub navs should be active
And
the active main tab should be Settings
features/steps/group_active_tab.rb
0 → 100644
View file @
1f6ebcb9
class
Spinach::Features::GroupActiveTab
<
Spinach
::
FeatureSteps
include
SharedAuthentication
include
SharedUser
include
SharedGroup
include
SharedPaths
include
SharedActiveTab
step
'the active sub nav should be Audit Events'
do
ensure_active_sub_nav
(
'Audit Events'
)
end
step
'the active main tab should be Settings'
do
page
.
within
'.nav-sidebar'
do
expect
(
page
).
to
have_content
(
'Back to group'
)
end
end
step
'the active sub nav should be Web Hooks'
do
ensure_active_sub_nav
(
'Web Hooks'
)
end
step
'I go to "Audit Events"'
do
click_link
'Audit Events'
end
step
'I go to "Web Hooks"'
do
click_link
'Web Hooks'
end
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