Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
7cfb445c
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,发现更多精彩内容 >>
提交
7cfb445c
编写于
6月 02, 2016
作者:
D
Dmitriy Zaporozhets
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update tests to match new Code tab logic
Signed-off-by:
N
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
上级
56a17a77
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
26 addition
and
25 deletion
+26
-25
app/controllers/projects/branches_controller.rb
app/controllers/projects/branches_controller.rb
+1
-1
features/project/active_tab.feature
features/project/active_tab.feature
+19
-18
features/steps/project/active_tab.rb
features/steps/project/active_tab.rb
+4
-0
features/steps/shared/project_tab.rb
features/steps/shared/project_tab.rb
+2
-6
未找到文件。
app/controllers/projects/branches_controller.rb
浏览文件 @
7cfb445c
...
...
@@ -50,7 +50,7 @@ class Projects::BranchesController < Projects::ApplicationController
redirect_to
namespace_project_branches_path
(
@project
.
namespace
,
@project
),
status:
303
end
format
.
js
{
head
:ok
}
format
.
js
{
render
nothing:
true
,
status:
status
[
:return_code
]
}
end
end
...
...
features/project/active_tab.feature
浏览文件 @
7cfb445c
...
...
@@ -10,14 +10,9 @@ Feature: Project Active Tab
Then
the active main tab should be Home
And
no other main tabs should be active
Scenario
:
On Project
Files
Scenario
:
On Project
Code
Given
I visit my project's files page
Then
the active main tab should be Files
And
no other main tabs should be active
Scenario
:
On Project Commits
Given
I visit my project's commits page
Then
the active main tab should be Commits
Then
the active main tab should be Code
And
no other main tabs should be active
Scenario
:
On Project Issues
...
...
@@ -64,40 +59,46 @@ Feature: Project Active Tab
And
no other sub navs should be active
And
the active main tab should be Settings
# Sub Tabs: Commits
# Sub Tabs: Code
Scenario
:
On Project Code/Files
Given
I visit my project's files page
Then
the active sub tab should be Files
And
no other sub tabs should be active
And
the active main tab should be Code
Scenario
:
On Project Co
mmits
/Commits
Scenario
:
On Project Co
de
/Commits
Given
I visit my project's commits page
Then
the active sub tab should be Commits
And
no other sub tabs should be active
And
the active main tab should be Co
mmits
And
the active main tab should be Co
de
Scenario
:
On Project Co
mmits
/Network
Scenario
:
On Project Co
de
/Network
Given
I visit my project's network page
Then
the active sub tab should be Network
And
no other sub tabs should be active
And
the active main tab should be Co
mmits
And
the active main tab should be Co
de
Scenario
:
On Project Co
mmits
/Compare
Scenario
:
On Project Co
de
/Compare
Given
I visit my project's commits page
And
I click the
"Compare"
tab
Then
the active sub tab should be Compare
And
no other sub tabs should be active
And
the active main tab should be Co
mmits
And
the active main tab should be Co
de
Scenario
:
On Project Co
mmits
/Branches
Scenario
:
On Project Co
de
/Branches
Given
I visit my project's commits page
And
I click the
"Branches"
tab
Then
the active sub tab should be Branches
And
no other sub tabs should be active
And
the active main tab should be Co
mmits
And
the active main tab should be Co
de
Scenario
:
On Project Co
mmits
/Tags
Scenario
:
On Project Co
de
/Tags
Given
I visit my project's commits page
And
I click the
"Tags"
tab
Then
the active sub tab should be Tags
And
no other sub tabs should be active
And
the active main tab should be Co
mmits
And
the active main tab should be Co
de
Scenario
:
On Project Issues/Browse
Given
I visit my project's issues page
...
...
features/steps/project/active_tab.rb
浏览文件 @
7cfb445c
...
...
@@ -63,6 +63,10 @@ class Spinach::Features::ProjectActiveTab < Spinach::FeatureSteps
click_link
(
'Tags'
)
end
step
'the active sub tab should be Files'
do
ensure_active_sub_tab
(
'Files'
)
end
step
'the active sub tab should be Commits'
do
ensure_active_sub_tab
(
'Commits'
)
end
...
...
features/steps/shared/project_tab.rb
浏览文件 @
7cfb445c
...
...
@@ -8,12 +8,8 @@ module SharedProjectTab
ensure_active_main_tab
(
'Project'
)
end
step
'the active main tab should be Files'
do
ensure_active_main_tab
(
'Files'
)
end
step
'the active main tab should be Commits'
do
ensure_active_main_tab
(
'Commits'
)
step
'the active main tab should be Code'
do
ensure_active_main_tab
(
'Code'
)
end
step
'the active main tab should be Graphs'
do
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录