Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
6a6a3345
G
gitlab-foss
项目概览
李少辉-开发者
/
gitlab-foss
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gitlab-foss
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
6a6a3345
编写于
2月 19, 2015
作者:
D
Dmitriy Zaporozhets
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix active tab tests
上级
00ac5644
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
12 addition
and
16 deletion
+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
未找到文件。
app/assets/stylesheets/sections/nav_sidebar.scss
浏览文件 @
6a6a3345
...
...
@@ -49,6 +49,7 @@
&
.no-highlight
{
background
:
none
;
border
:
none
;
}
i
{
...
...
app/views/layouts/nav/_project.html.haml
浏览文件 @
6a6a3345
...
...
@@ -6,7 +6,7 @@
%span
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
%i
.fa.fa-cogs
%span
...
...
features/project/active_tab.feature
浏览文件 @
6a6a3345
...
...
@@ -106,24 +106,19 @@ Feature: Project Active Tab
And
no other sub tabs should be active
And
the active main tab should be Commits
# Sub Tabs: Issues
Scenario
:
On Project Issues/Browse
Given
I visit my project's issues page
Then
the active sub tab should be Issues
And
no other sub tabs should be active
And
the active main tab should be Issues
Then
the active main tab should be Issues
And
no other main tabs should be active
Scenario
:
On Project Issues/Milestones
Given
I visit my project's issues page
And
I click the
"Milestones"
tab
Then
the active sub tab should be Milestones
And
no other sub tabs should be active
And
the active main tab should be Issues
Then
the active main tab should be Milestones
And
no other main tabs should be active
Scenario
:
On Project Issues/Labels
Given
I visit my project's issues page
And
I click the
"Labels"
tab
Then
the active sub tab should be Labels
And
no other sub tabs should be active
And
the active main tab should be Issues
Then
the active main tab should be Labels
And
no other main tabs should be active
features/steps/project/active_tab.rb
浏览文件 @
6a6a3345
...
...
@@ -93,11 +93,11 @@ class Spinach::Features::ProjectActiveTab < Spinach::FeatureSteps
ensure_active_sub_tab
(
'Issues'
)
end
step
'the active
sub
tab should be Milestones'
do
ensure_active_
sub
_tab
(
'Milestones'
)
step
'the active
main
tab should be Milestones'
do
ensure_active_
main
_tab
(
'Milestones'
)
end
step
'the active
sub
tab should be Labels'
do
ensure_active_
sub
_tab
(
'Labels'
)
step
'the active
main
tab should be Labels'
do
ensure_active_
main
_tab
(
'Labels'
)
end
end
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录