Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
953db847
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,发现更多精彩内容 >>
提交
953db847
编写于
1月 15, 2013
作者:
D
Dmitriy Zaporozhets
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
More fixes for test
上级
211c06e4
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
12 addition
and
8 deletion
+12
-8
features/steps/project/project_merge_requests.rb
features/steps/project/project_merge_requests.rb
+4
-6
features/steps/shared/diff_note.rb
features/steps/shared/diff_note.rb
+2
-0
features/steps/shared/note.rb
features/steps/shared/note.rb
+6
-2
未找到文件。
features/steps/project/project_merge_requests.rb
浏览文件 @
953db847
...
...
@@ -103,21 +103,19 @@ class ProjectMergeRequests < Spinach::FeatureSteps
end
And
'I leave a comment on the diff page'
do
within
(
:xpath
,
"//div[@class='note-form-holder']"
)
do
within
(
'.js-temp-notes-holder'
)
do
fill_in
"note_note"
,
with:
"One comment to rule them all"
click_button
"Add Comment"
end
end
And
'I leave a comment like "Line is wrong" on line 185 of the first file'
do
save_and_open_page
within
(
:xpath
,
"//div[@class='diff_file'][1]"
)
do
click_link
"add-diff-line-note-0_185_185"
end
find
(
"#4735dfc552ad7bf15ca468adc3cad9d05b624490_185_185 .add-diff-note"
).
click
within
(
:xpath
,
"//div[@class='line-note-form-holder']
"
)
do
within
(
".js-temp-notes-holder
"
)
do
fill_in
"note_note"
,
with:
"Line is wrong"
click_button
"Add Comment"
sleep
0.05
end
end
...
...
features/steps/shared/diff_note.rb
浏览文件 @
953db847
...
...
@@ -8,6 +8,7 @@ module SharedDiffNote
end
Given
'I delete a diff comment'
do
sleep
1
within
(
".diff_file"
)
do
first
(
".js-note-delete"
).
trigger
(
"click"
)
end
...
...
@@ -25,6 +26,7 @@ module SharedDiffNote
fill_in
"note[note]"
,
with:
"Typo, please fix"
#click_button("Add Comment")
find
(
".js-comment-button"
).
trigger
(
"click"
)
sleep
0.05
end
end
...
...
features/steps/shared/note.rb
浏览文件 @
953db847
...
...
@@ -39,8 +39,6 @@ module SharedNote
end
end
Then
'I should not see a comment saying "XML attached"'
do
page
.
should_not
have_css
(
".note"
)
end
...
...
@@ -113,4 +111,10 @@ module SharedNote
Then
'I should see project wall note "my special test message"'
do
page
.
should
have_content
"my special test message"
end
Then
'I should see comment "XML attached"'
do
within
(
".note"
)
do
page
.
should
have_content
(
"XML attached"
)
end
end
end
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录