Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
753ecbdc
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,发现更多精彩内容 >>
提交
753ecbdc
编写于
3月 14, 2013
作者:
D
Dmitriy Zaporozhets
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Change spinach tab tests to fit new tabs navigation
上级
38ecec44
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
38 addition
and
29 deletion
+38
-29
features/project/active_tab.feature
features/project/active_tab.feature
+30
-29
features/steps/project/project_active_tab.rb
features/steps/project/project_active_tab.rb
+4
-0
features/steps/shared/paths.rb
features/steps/shared/paths.rb
+4
-0
未找到文件。
features/project/active_tab.feature
浏览文件 @
753ecbdc
...
...
@@ -49,51 +49,52 @@ Feature: Project active tab
Scenario
:
On Project Home/Show
Given
I visit my project's home page
Then
the active sub tab should be Show
And
no other sub tabs should be active
And
the active main tab should be Home
Then
the active main tab should be Home
And
no other main tabs should be active
Scenario
:
On Project Home/Team
Given
I visit my project's home page
And
I click the
"Team
"
tab
Then
the active sub tab should be Team
And
no other sub tabs should be active
And
the active main tab should be Home
#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 Home/Attachmen
ts
Given
I visit my project's home page
And
I click the
"Attachmen
ts"
tab
Then
the active sub tab should be Attachmen
ts
And
no other sub tabs should be active
And
the active main tab should be Home
#Scenario: On Project Settings/Snippe
ts
#
Given I visit my project's home page
#And I click the "Snippe
ts" tab
#Then the active sub tab should be Snippe
ts
#
And no other sub tabs should be active
#
And the active main tab should be Home
Scenario
:
On Project Home/Snippets
Given
I visit my project's home page
And
I click the
"Snippets"
tab
Then
the active sub tab should be Snippets
# Sub Tabs: Settings
Scenario
:
On Project Settings/Team
Given
I visit my project's settings page
And
I click the
"Team"
tab
Then
the active sub tab should be Team
And
no other sub tabs should be active
And
the active main tab should be
Home
And
the active main tab should be
Settings
Scenario
:
On Project
Home
/Edit
Given
I visit my project's
home
page
Scenario
:
On Project
Settings
/Edit
Given
I visit my project's
settings
page
And
I click the
"Edit"
tab
Then
the active sub tab should be Edit
And
no other sub tabs should be active
And
the active main tab should be
Home
And
the active main tab should be
Settings
Scenario
:
On Project
Home
/Hooks
Given
I visit my project's
home
page
Scenario
:
On Project
Settings
/Hooks
Given
I visit my project's
settings
page
And
I click the
"Hooks"
tab
Then
the active sub tab should be Hooks
And
no other sub tabs should be active
And
the active main tab should be
Home
And
the active main tab should be
Settings
Scenario
:
On Project
Home
/Deploy Keys
Given
I visit my project's
home
page
Scenario
:
On Project
Settings
/Deploy Keys
Given
I visit my project's
settings
page
And
I click the
"Deploy Keys"
tab
Then
the active sub tab should be Deploy Keys
And
no other sub tabs should be active
And
the active main tab should be
Home
And
the active main tab should be
Settings
# Sub Tabs: Commits
...
...
features/steps/project/project_active_tab.rb
浏览文件 @
753ecbdc
...
...
@@ -10,6 +10,10 @@ class ProjectActiveTab < Spinach::FeatureSteps
ensure_active_main_tab
(
'Home'
)
end
Then
'the active main tab should be Settings'
do
ensure_active_main_tab
(
'Settings'
)
end
Then
'the active main tab should be Files'
do
ensure_active_main_tab
(
'Files'
)
end
...
...
features/steps/shared/paths.rb
浏览文件 @
753ecbdc
...
...
@@ -125,6 +125,10 @@ module SharedPaths
visit
project_path
(
@project
)
end
Given
"I visit my project's settings page"
do
visit
edit_project_path
(
@project
)
end
Given
"I visit my project's files page"
do
visit
project_tree_path
(
@project
,
root_ref
)
end
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录