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
cc2145da
Commit
cc2145da
authored
Jun 19, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed sub navs spinach tests for project
parent
1811d32e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
42 deletions
+24
-42
features/project/active_tab.feature
features/project/active_tab.feature
+8
-22
features/steps/project/project_active_tab.rb
features/steps/project/project_active_tab.rb
+8
-20
features/steps/shared/active_tab.rb
features/steps/shared/active_tab.rb
+8
-0
No files found.
features/project/active_tab.feature
View file @
cc2145da
...
@@ -52,48 +52,34 @@ Feature: Project active tab
...
@@ -52,48 +52,34 @@ Feature: Project active tab
Then
the active main tab should be Home
Then
the active main tab should be Home
And
no other main tabs should be active
And
no other main tabs should be active
#Scenario: On Project Settings/Attachments
#Given I visit my project's home page
#And I click the "Attachments" tab
#Then the active sub tab should be Attachments
#And no other sub tabs should be active
#And the active main tab should be Home
#Scenario: On Project Settings/Snippets
#Given I visit my project's home page
#And I click the "Snippets" tab
#Then the active sub tab should be Snippets
#And no other sub tabs should be active
#And the active main tab should be Home
# Sub Tabs: Settings
# Sub Tabs: Settings
Scenario
:
On Project Settings/Team
Scenario
:
On Project Settings/Team
Given
I visit my project's settings page
Given
I visit my project's settings page
And
I click the
"Team"
tab
And
I click the
"Team"
tab
Then
the active sub
tab
should be Team
Then
the active sub
nav
should be Team
And
no other sub
tab
s should be active
And
no other sub
nav
s should be active
And
the active main tab should be Settings
And
the active main tab should be Settings
Scenario
:
On Project Settings/Edit
Scenario
:
On Project Settings/Edit
Given
I visit my project's settings page
Given
I visit my project's settings page
And
I click the
"Edit"
tab
And
I click the
"Edit"
tab
Then
the active sub
tab
should be Edit
Then
the active sub
nav
should be Edit
And
no other sub
tab
s should be active
And
no other sub
nav
s should be active
And
the active main tab should be Settings
And
the active main tab should be Settings
Scenario
:
On Project Settings/Hooks
Scenario
:
On Project Settings/Hooks
Given
I visit my project's settings page
Given
I visit my project's settings page
And
I click the
"Hooks"
tab
And
I click the
"Hooks"
tab
Then
the active sub
tab
should be Hooks
Then
the active sub
nav
should be Hooks
And
no other sub
tab
s should be active
And
no other sub
nav
s should be active
And
the active main tab should be Settings
And
the active main tab should be Settings
Scenario
:
On Project Settings/Deploy Keys
Scenario
:
On Project Settings/Deploy Keys
Given
I visit my project's settings page
Given
I visit my project's settings page
And
I click the
"Deploy Keys"
tab
And
I click the
"Deploy Keys"
tab
Then
the active sub
tab
should be Deploy Keys
Then
the active sub
nav
should be Deploy Keys
And
no other sub
tab
s should be active
And
no other sub
nav
s should be active
And
the active main tab should be Settings
And
the active main tab should be Settings
# Sub Tabs: Commits
# Sub Tabs: Commits
...
...
features/steps/project/project_active_tab.rb
View file @
cc2145da
...
@@ -68,32 +68,20 @@ class ProjectActiveTab < Spinach::FeatureSteps
...
@@ -68,32 +68,20 @@ class ProjectActiveTab < Spinach::FeatureSteps
click_link
(
'Deploy Keys'
)
click_link
(
'Deploy Keys'
)
end
end
Then
'the active sub
tab should be Show
'
do
Then
'the active sub
nav should be Team
'
do
ensure_active_sub_
tab
(
'Show
'
)
ensure_active_sub_
nav
(
'Members
'
)
end
end
Then
'the active sub
tab should be Team
'
do
Then
'the active sub
nav should be Edit
'
do
ensure_active_sub_
tab
(
'Members
'
)
ensure_active_sub_
nav
(
'Edit Project
'
)
end
end
Then
'the active sub
tab should be Attachment
s'
do
Then
'the active sub
nav should be Hook
s'
do
ensure_active_sub_
tab
(
'Attachment
s'
)
ensure_active_sub_
nav
(
'Web Hook
s'
)
end
end
Then
'the active sub tab should be Snippets'
do
Then
'the active sub nav should be Deploy Keys'
do
ensure_active_sub_tab
(
'Snippets'
)
ensure_active_sub_nav
(
'Deploy Keys'
)
end
Then
'the active sub tab should be Edit'
do
ensure_active_sub_tab
(
'Edit'
)
end
Then
'the active sub tab should be Hooks'
do
ensure_active_sub_tab
(
'Web Hooks'
)
end
Then
'the active sub tab should be Deploy Keys'
do
ensure_active_sub_tab
(
'Deploy Keys'
)
end
end
# Sub Tabs: Commits
# Sub Tabs: Commits
...
...
features/steps/shared/active_tab.rb
View file @
cc2145da
...
@@ -13,6 +13,10 @@ module SharedActiveTab
...
@@ -13,6 +13,10 @@ module SharedActiveTab
page
.
find
(
'div.content ul.nav-tabs li.active'
).
should
have_content
(
content
)
page
.
find
(
'div.content ul.nav-tabs li.active'
).
should
have_content
(
content
)
end
end
def
ensure_active_sub_nav
(
content
)
page
.
find
(
'div.content ul.nav-stacked-menu li.active'
).
should
have_content
(
content
)
end
And
'no other main tabs should be active'
do
And
'no other main tabs should be active'
do
page
.
should
have_selector
(
'.main-nav li.active'
,
count:
1
)
page
.
should
have_selector
(
'.main-nav li.active'
,
count:
1
)
end
end
...
@@ -20,4 +24,8 @@ module SharedActiveTab
...
@@ -20,4 +24,8 @@ module SharedActiveTab
And
'no other sub tabs should be active'
do
And
'no other sub tabs should be active'
do
page
.
should
have_selector
(
'div.content ul.nav-tabs li.active'
,
count:
1
)
page
.
should
have_selector
(
'div.content ul.nav-tabs li.active'
,
count:
1
)
end
end
And
'no other sub navs should be active'
do
page
.
should
have_selector
(
'div.content ul.nav-stacked-menu li.active'
,
count:
1
)
end
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