Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
cc2145da
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,发现更多精彩内容 >>
提交
cc2145da
编写于
6月 19, 2013
作者:
D
Dmitriy Zaporozhets
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixed sub navs spinach tests for project
上级
1811d32e
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
24 addition
and
42 deletion
+24
-42
features/project/active_tab.feature
features/project/active_tab.feature
+8
-22
features/steps/project/project_active_tab.rb
features/steps/project/project_active_tab.rb
+8
-20
features/steps/shared/active_tab.rb
features/steps/shared/active_tab.rb
+8
-0
未找到文件。
features/project/active_tab.feature
浏览文件 @
cc2145da
...
...
@@ -52,48 +52,34 @@ Feature: Project active tab
Then
the active main tab should be Home
And
no other main tabs should be active
#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 Settings/Snippets
#Given I visit my project's home page
#And I click the "Snippets" tab
#Then the active sub tab should be Snippets
#And no other sub tabs should be active
#And the active main tab should be Home
# 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
tab
s should be active
Then
the active sub
nav
should be Team
And
no other sub
nav
s should be active
And
the active main tab should be Settings
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
tab
s should be active
Then
the active sub
nav
should be Edit
And
no other sub
nav
s should be active
And
the active main tab should be Settings
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
tab
s should be active
Then
the active sub
nav
should be Hooks
And
no other sub
nav
s should be active
And
the active main tab should be Settings
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
tab
s should be active
Then
the active sub
nav
should be Deploy Keys
And
no other sub
nav
s should be active
And
the active main tab should be Settings
# Sub Tabs: Commits
...
...
features/steps/project/project_active_tab.rb
浏览文件 @
cc2145da
...
...
@@ -68,32 +68,20 @@ class ProjectActiveTab < Spinach::FeatureSteps
click_link
(
'Deploy Keys'
)
end
Then
'the active sub
tab should be Show
'
do
ensure_active_sub_
tab
(
'Show
'
)
Then
'the active sub
nav should be Team
'
do
ensure_active_sub_
nav
(
'Members
'
)
end
Then
'the active sub
tab should be Team
'
do
ensure_active_sub_
tab
(
'Members
'
)
Then
'the active sub
nav should be Edit
'
do
ensure_active_sub_
nav
(
'Edit Project
'
)
end
Then
'the active sub
tab should be Attachment
s'
do
ensure_active_sub_
tab
(
'Attachment
s'
)
Then
'the active sub
nav should be Hook
s'
do
ensure_active_sub_
nav
(
'Web Hook
s'
)
end
Then
'the active sub tab should be Snippets'
do
ensure_active_sub_tab
(
'Snippets'
)
end
Then
'the active sub tab should be Edit'
do
ensure_active_sub_tab
(
'Edit'
)
end
Then
'the active sub tab should be Hooks'
do
ensure_active_sub_tab
(
'Web Hooks'
)
end
Then
'the active sub tab should be Deploy Keys'
do
ensure_active_sub_tab
(
'Deploy Keys'
)
Then
'the active sub nav should be Deploy Keys'
do
ensure_active_sub_nav
(
'Deploy Keys'
)
end
# Sub Tabs: Commits
...
...
features/steps/shared/active_tab.rb
浏览文件 @
cc2145da
...
...
@@ -13,6 +13,10 @@ module SharedActiveTab
page
.
find
(
'div.content ul.nav-tabs li.active'
).
should
have_content
(
content
)
end
def
ensure_active_sub_nav
(
content
)
page
.
find
(
'div.content ul.nav-stacked-menu li.active'
).
should
have_content
(
content
)
end
And
'no other main tabs should be active'
do
page
.
should
have_selector
(
'.main-nav li.active'
,
count:
1
)
end
...
...
@@ -20,4 +24,8 @@ module SharedActiveTab
And
'no other sub tabs should be active'
do
page
.
should
have_selector
(
'div.content ul.nav-tabs li.active'
,
count:
1
)
end
And
'no other sub navs should be active'
do
page
.
should
have_selector
(
'div.content ul.nav-stacked-menu li.active'
,
count:
1
)
end
end
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录