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
Boxiang Sun
gitlab-ce
Commits
6a6a3345
Commit
6a6a3345
authored
Feb 19, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix active tab tests
parent
00ac5644
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
16 deletions
+12
-16
app/assets/stylesheets/sections/nav_sidebar.scss
app/assets/stylesheets/sections/nav_sidebar.scss
+1
-0
app/views/layouts/nav/_project.html.haml
app/views/layouts/nav/_project.html.haml
+1
-1
features/project/active_tab.feature
features/project/active_tab.feature
+6
-11
features/steps/project/active_tab.rb
features/steps/project/active_tab.rb
+4
-4
No files found.
app/assets/stylesheets/sections/nav_sidebar.scss
View file @
6a6a3345
...
@@ -49,6 +49,7 @@
...
@@ -49,6 +49,7 @@
&
.no-highlight
{
&
.no-highlight
{
background
:
none
;
background
:
none
;
border
:
none
;
}
}
i
{
i
{
...
...
app/views/layouts/nav/_project.html.haml
View file @
6a6a3345
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
%span
%span
Back to project
Back to project
=
nav_link
(
html_options:
{
class:
"separate-item"
})
do
=
nav_link
(
html_options:
{
class:
"
#{
project_tab_class
}
separate-item"
})
do
=
link_to
edit_project_path
(
@project
),
title:
'Settings'
,
class:
"stat-tab tab no-highlight"
do
=
link_to
edit_project_path
(
@project
),
title:
'Settings'
,
class:
"stat-tab tab no-highlight"
do
%i
.fa.fa-cogs
%i
.fa.fa-cogs
%span
%span
...
...
features/project/active_tab.feature
View file @
6a6a3345
...
@@ -106,24 +106,19 @@ Feature: Project Active Tab
...
@@ -106,24 +106,19 @@ Feature: Project Active Tab
And
no other sub tabs should be active
And
no other sub tabs should be active
And
the active main tab should be Commits
And
the active main tab should be Commits
# Sub Tabs: Issues
Scenario
:
On Project Issues/Browse
Scenario
:
On Project Issues/Browse
Given
I visit my project's issues page
Given
I visit my project's issues page
Then
the active sub tab should be Issues
Then
the active main tab should be Issues
And
no other sub tabs should be active
And
no other main tabs should be active
And
the active main tab should be Issues
Scenario
:
On Project Issues/Milestones
Scenario
:
On Project Issues/Milestones
Given
I visit my project's issues page
Given
I visit my project's issues page
And
I click the
"Milestones"
tab
And
I click the
"Milestones"
tab
Then
the active sub tab should be Milestones
Then
the active main tab should be Milestones
And
no other sub tabs should be active
And
no other main tabs should be active
And
the active main tab should be Issues
Scenario
:
On Project Issues/Labels
Scenario
:
On Project Issues/Labels
Given
I visit my project's issues page
Given
I visit my project's issues page
And
I click the
"Labels"
tab
And
I click the
"Labels"
tab
Then
the active sub tab should be Labels
Then
the active main tab should be Labels
And
no other sub tabs should be active
And
no other main tabs should be active
And
the active main tab should be Issues
features/steps/project/active_tab.rb
View file @
6a6a3345
...
@@ -93,11 +93,11 @@ class Spinach::Features::ProjectActiveTab < Spinach::FeatureSteps
...
@@ -93,11 +93,11 @@ class Spinach::Features::ProjectActiveTab < Spinach::FeatureSteps
ensure_active_sub_tab
(
'Issues'
)
ensure_active_sub_tab
(
'Issues'
)
end
end
step
'the active
sub
tab should be Milestones'
do
step
'the active
main
tab should be Milestones'
do
ensure_active_
sub
_tab
(
'Milestones'
)
ensure_active_
main
_tab
(
'Milestones'
)
end
end
step
'the active
sub
tab should be Labels'
do
step
'the active
main
tab should be Labels'
do
ensure_active_
sub
_tab
(
'Labels'
)
ensure_active_
main
_tab
(
'Labels'
)
end
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