Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
a72f4ecb
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,发现更多精彩内容 >>
未验证
提交
a72f4ecb
编写于
5月 03, 2018
作者:
F
Filipa Lacerda
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix broken tests - use the corrent event when button is clicked
上级
eed2812f
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
10 addition
and
9 deletion
+10
-9
app/assets/javascripts/pipelines/components/graph/action_component.vue
...vascripts/pipelines/components/graph/action_component.vue
+2
-2
app/assets/javascripts/pipelines/components/stage.vue
app/assets/javascripts/pipelines/components/stage.vue
+2
-1
app/assets/javascripts/pipelines/pipeline_details_bundle.js
app/assets/javascripts/pipelines/pipeline_details_bundle.js
+2
-2
spec/features/projects/pipelines/pipelines_spec.rb
spec/features/projects/pipelines/pipelines_spec.rb
+3
-3
spec/javascripts/pipelines/graph/action_component_spec.js
spec/javascripts/pipelines/graph/action_component_spec.js
+1
-1
未找到文件。
app/assets/javascripts/pipelines/components/graph/action_component.vue
浏览文件 @
a72f4ecb
...
...
@@ -61,7 +61,7 @@ export default {
methods
:
{
onClickAction
()
{
$
(
this
.
$el
).
tooltip
(
'
hide
'
);
eventHub
.
$emit
(
'
graph
Action
'
,
this
.
link
);
eventHub
.
$emit
(
'
post
Action
'
,
this
.
link
);
this
.
linkRequested
=
this
.
link
;
this
.
isDisabled
=
true
;
},
...
...
@@ -75,7 +75,7 @@ export default {
v-tooltip
:title=
"tooltipText"
class=
"js-ci-action btn btn-blank
btn-transparent ci-action-icon-container ci-action-icon-wrapper
js-ci-action-icon
"
btn-transparent ci-action-icon-container ci-action-icon-wrapper"
:class=
"cssClass"
data-container=
"body"
:disabled=
"isDisabled"
...
...
app/assets/javascripts/pipelines/components/stage.vue
浏览文件 @
a72f4ecb
...
...
@@ -117,7 +117,8 @@ export default {
*/
stopDropdownClickPropagation
()
{
$
(
this
.
$el
.
querySelectorAll
(
'
.js-builds-dropdown-list a.mini-pipeline-graph-dropdown-item
'
),
'
.js-builds-dropdown-list button, .js-builds-dropdown-list a.mini-pipeline-graph-dropdown-item
'
,
this
.
$el
,
).
on
(
'
click
'
,
e
=>
{
e
.
stopPropagation
();
});
...
...
app/assets/javascripts/pipelines/pipeline_details_bundle.js
浏览文件 @
a72f4ecb
...
...
@@ -29,10 +29,10 @@ export default () => {
};
},
created
()
{
eventHub
.
$on
(
'
graph
Action
'
,
this
.
postAction
);
eventHub
.
$on
(
'
post
Action
'
,
this
.
postAction
);
},
beforeDestroy
()
{
eventHub
.
$off
(
'
graph
Action
'
,
this
.
postAction
);
eventHub
.
$off
(
'
post
Action
'
,
this
.
postAction
);
},
methods
:
{
postAction
(
action
)
{
...
...
spec/features/projects/pipelines/pipelines_spec.rb
浏览文件 @
a72f4ecb
...
...
@@ -388,9 +388,9 @@ describe 'Pipelines', :js do
it
'should be possible to cancel pending build'
do
find
(
'.js-builds-dropdown-button'
).
click
find
(
'.js-ci-action-icon'
).
click
find
(
'.js-ci-action'
).
click
wait_for_requests
expect
(
page
).
to
have_content
(
'canceled'
)
expect
(
build
.
reload
).
to
be_canceled
end
end
...
...
@@ -407,7 +407,7 @@ describe 'Pipelines', :js do
within
(
'.js-builds-dropdown-list'
)
do
build_element
=
page
.
find
(
'.mini-pipeline-graph-dropdown-item'
)
expect
(
build_element
[
'data-title'
]).
to
eq
(
'build - failed <br> (unknown failure)'
)
expect
(
build_element
[
'data-
original-
title'
]).
to
eq
(
'build - failed <br> (unknown failure)'
)
end
end
end
...
...
spec/javascripts/pipelines/graph/action_component_spec.js
浏览文件 @
a72f4ecb
...
...
@@ -22,7 +22,7 @@ describe('pipeline graph action component', () => {
});
it
(
'
should emit an event with the provided link
'
,
()
=>
{
eventHub
.
$on
(
'
graph
Action
'
,
link
=>
{
eventHub
.
$on
(
'
post
Action
'
,
link
=>
{
expect
(
link
).
toEqual
(
'
foo
'
);
});
});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录