Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
59fc1816
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,发现更多精彩内容 >>
提交
59fc1816
编写于
6月 21, 2016
作者:
S
Stan Hu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Rename Repo -> Repository
上级
5c9f0896
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
24 addition
and
24 deletion
+24
-24
app/views/layouts/nav/_project.html.haml
app/views/layouts/nav/_project.html.haml
+2
-2
features/project/active_tab.feature
features/project/active_tab.feature
+15
-15
features/project/shortcuts.feature
features/project/shortcuts.feature
+3
-3
features/steps/project/project_find_file.rb
features/steps/project/project_find_file.rb
+2
-2
features/steps/shared/project_tab.rb
features/steps/shared/project_tab.rb
+2
-2
未找到文件。
app/views/layouts/nav/_project.html.haml
浏览文件 @
59fc1816
...
...
@@ -38,9 +38,9 @@
-
if
project_nav_tab?
:files
=
nav_link
(
controller:
%w(tree blob blame edit_tree new_tree find_file commit commits compare repositories tags branches releases network)
)
do
=
link_to
project_files_path
(
@project
),
title:
'Repo'
,
class:
'shortcuts-tree'
do
=
link_to
project_files_path
(
@project
),
title:
'Repo
sitory
'
,
class:
'shortcuts-tree'
do
%span
Repo
Repo
sitory
-
if
project_nav_tab?
:pipelines
=
nav_link
(
controller:
[
:pipelines
,
:builds
,
:environments
])
do
...
...
features/project/active_tab.feature
浏览文件 @
59fc1816
...
...
@@ -10,9 +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 Repo
Scenario
:
On Project Repo
sitory
Given
I visit my project's files page
Then
the active main tab should be Repo
Then
the active main tab should be Repo
sitory
And
no other main tabs should be active
Scenario
:
On Project Issues
...
...
@@ -59,46 +59,46 @@ Feature: Project Active Tab
And
no other sub navs should be active
And
the active main tab should be Settings
# Sub Tabs: Repo
# Sub Tabs: Repo
sitory
Scenario
:
On Project Repo/Files
Scenario
:
On Project Repo
sitory
/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 Repo
And
the active main tab should be Repo
sitory
Scenario
:
On Project Repo/Commits
Scenario
:
On Project Repo
sitory
/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 Repo
And
the active main tab should be Repo
sitory
Scenario
:
On Project Repo/Network
Scenario
:
On Project Repo
sitory
/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 Repo
And
the active main tab should be Repo
sitory
Scenario
:
On Project Repo/Compare
Scenario
:
On Project Repo
sitory
/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 Repo
And
the active main tab should be Repo
sitory
Scenario
:
On Project Repo/Branches
Scenario
:
On Project Repo
sitory
/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 Repo
And
the active main tab should be Repo
sitory
Scenario
:
On Project Repo/Tags
Scenario
:
On Project Repo
sitory
/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 Repo
And
the active main tab should be Repo
sitory
Scenario
:
On Project Issues/Browse
Given
I visit my project's issues page
...
...
features/project/shortcuts.feature
浏览文件 @
59fc1816
...
...
@@ -8,21 +8,21 @@ Feature: Project Shortcuts
@javascript
Scenario
:
Navigate to files tab
Given
I press
"g"
and
"f"
Then
the active main tab should be Repo
Then
the active main tab should be Repo
sitory
Then
the active sub tab should be Files
@javascript
Scenario
:
Navigate to commits tab
Given
I visit my project's files page
Given
I press
"g"
and
"c"
Then
the active main tab should be Repo
Then
the active main tab should be Repo
sitory
Then
the active sub tab should be Commits
@javascript
Scenario
:
Navigate to network tab
Given
I press
"g"
and
"n"
Then
the active sub tab should be Network
And
the active main tab should be Repo
And
the active main tab should be Repo
sitory
@javascript
Scenario
:
Navigate to graphs tab
...
...
features/steps/project/project_find_file.rb
浏览文件 @
59fc1816
...
...
@@ -13,12 +13,12 @@ class Spinach::Features::ProjectFindFile < Spinach::FeatureSteps
end
step
'I should see "find file" page'
do
ensure_active_main_tab
(
'Repo'
)
ensure_active_main_tab
(
'Repo
sitory
'
)
expect
(
page
).
to
have_selector
(
'.file-finder-holder'
,
count:
1
)
end
step
'I fill in Find by path with "git"'
do
ensure_active_main_tab
(
'Repo'
)
ensure_active_main_tab
(
'Repo
sitory
'
)
expect
(
page
).
to
have_selector
(
'.file-finder-holder'
,
count:
1
)
end
...
...
features/steps/shared/project_tab.rb
浏览文件 @
59fc1816
...
...
@@ -8,8 +8,8 @@ module SharedProjectTab
ensure_active_main_tab
(
'Project'
)
end
step
'the active main tab should be Repo'
do
ensure_active_main_tab
(
'Repo'
)
step
'the active main tab should be Repo
sitory
'
do
ensure_active_main_tab
(
'Repo
sitory
'
)
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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录