Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
95cbd41f
Commit
95cbd41f
authored
Oct 24, 2018
by
Filipa Lacerda
Committed by
Matija Čupić
Oct 24, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Regenerates pot files
Makes documentation path a required prop
parent
c2ded9bd
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
5 deletions
+17
-5
app/assets/javascripts/vue_merge_request_widget/components/mr_widget_pipeline.vue
...ue_merge_request_widget/components/mr_widget_pipeline.vue
+2
-3
locale/gitlab.pot
locale/gitlab.pot
+3
-0
spec/features/merge_request/user_sees_merge_widget_spec.rb
spec/features/merge_request/user_sees_merge_widget_spec.rb
+1
-1
spec/javascripts/vue_mr_widget/components/mr_widget_pipeline_spec.js
...ripts/vue_mr_widget/components/mr_widget_pipeline_spec.js
+10
-1
spec/javascripts/vue_mr_widget/mock_data.js
spec/javascripts/vue_mr_widget/mock_data.js
+1
-0
No files found.
app/assets/javascripts/vue_merge_request_widget/components/mr_widget_pipeline.vue
View file @
95cbd41f
...
...
@@ -39,8 +39,7 @@ export default {
},
troubleshootingDocsPath
:
{
type
:
String
,
required
:
false
,
default
:
''
,
required
:
true
,
},
},
computed
:
{
...
...
@@ -68,7 +67,7 @@ export default {
linkStart
:
`<a href="
${
this
.
troubleshootingDocsPath
}
">`
,
linkEnd
:
'
</a>
'
,
});
}
}
,
},
};
</
script
>
...
...
locale/gitlab.pot
View file @
95cbd41f
...
...
@@ -1983,6 +1983,9 @@ msgstr ""
msgid "Copy token to clipboard"
msgstr ""
msgid "Could not retrieve the pipeline status. For troubleshooting steps, read the %{linkStart}documentation.%{linkEnd}"
msgstr ""
msgid "Create"
msgstr ""
...
...
spec/features/merge_request/user_sees_merge_widget_spec.rb
View file @
95cbd41f
...
...
@@ -174,7 +174,7 @@ describe 'Merge request > User sees merge widget', :js do
# Wait for the `ci_status` and `merge_check` requests
wait_for_requests
expect
(
page
).
to
have_text
(
'Could not retrieve the pipeline status. For
potential solutions please read the documentation.
'
)
expect
(
page
).
to
have_text
(
'Could not retrieve the pipeline status. For
troubleshooting steps, read the <a href=\"\">documentation.</a>
'
)
end
end
...
...
spec/javascripts/vue_mr_widget/components/mr_widget_pipeline_spec.js
View file @
95cbd41f
...
...
@@ -22,6 +22,7 @@ describe('MRWidgetPipeline', () => {
pipeline
:
mockData
.
pipeline
,
ciStatus
:
'
success
'
,
hasCi
:
true
,
troubleshootingDocsPath
:
'
help
'
,
});
expect
(
vm
.
hasPipeline
).
toEqual
(
true
);
...
...
@@ -30,6 +31,7 @@ describe('MRWidgetPipeline', () => {
it
(
'
should return false when there is no pipeline
'
,
()
=>
{
vm
=
mountComponent
(
Component
,
{
pipeline
:
{},
troubleshootingDocsPath
:
'
help
'
,
});
expect
(
vm
.
hasPipeline
).
toEqual
(
false
);
...
...
@@ -42,6 +44,7 @@ describe('MRWidgetPipeline', () => {
pipeline
:
mockData
.
pipeline
,
hasCi
:
true
,
ciStatus
:
'
success
'
,
troubleshootingDocsPath
:
'
help
'
,
});
expect
(
vm
.
hasCIError
).
toEqual
(
false
);
...
...
@@ -52,6 +55,7 @@ describe('MRWidgetPipeline', () => {
pipeline
:
mockData
.
pipeline
,
hasCi
:
true
,
ciStatus
:
null
,
troubleshootingDocsPath
:
'
help
'
,
});
expect
(
vm
.
hasCIError
).
toEqual
(
true
);
...
...
@@ -65,11 +69,12 @@ describe('MRWidgetPipeline', () => {
pipeline
:
mockData
.
pipeline
,
hasCi
:
true
,
ciStatus
:
null
,
troubleshootingDocsPath
:
'
help
'
,
});
expect
(
vm
.
$el
.
querySelector
(
'
.media-body
'
).
textContent
.
trim
(),
).
to
Equal
(
'
Could not retrieve the pipeline status. For potential solutions please read the documentation.
'
);
).
to
Contain
(
'
Could not retrieve the pipeline status. For troubleshooting steps, read the <a href="help">documentation.</a>
'
);
});
describe
(
'
with a pipeline
'
,
()
=>
{
...
...
@@ -78,6 +83,7 @@ describe('MRWidgetPipeline', () => {
pipeline
:
mockData
.
pipeline
,
hasCi
:
true
,
ciStatus
:
'
success
'
,
troubleshootingDocsPath
:
'
help
'
,
});
});
...
...
@@ -122,6 +128,7 @@ describe('MRWidgetPipeline', () => {
pipeline
:
mockCopy
.
pipeline
,
hasCi
:
true
,
ciStatus
:
'
success
'
,
troubleshootingDocsPath
:
'
help
'
,
});
});
...
...
@@ -162,6 +169,7 @@ describe('MRWidgetPipeline', () => {
pipeline
:
mockCopy
.
pipeline
,
hasCi
:
true
,
ciStatus
:
'
success
'
,
troubleshootingDocsPath
:
'
help
'
,
});
expect
(
...
...
@@ -179,6 +187,7 @@ describe('MRWidgetPipeline', () => {
pipeline
:
mockCopy
.
pipeline
,
hasCi
:
true
,
ciStatus
:
'
success
'
,
troubleshootingDocsPath
:
'
help
'
,
});
expect
(
vm
.
$el
.
querySelector
(
'
.js-mini-pipeline-graph
'
)).
toEqual
(
null
);
...
...
spec/javascripts/vue_mr_widget/mock_data.js
View file @
95cbd41f
...
...
@@ -219,4 +219,5 @@ export default {
only_allow_merge_if_pipeline_succeeds
:
false
,
commit_change_content_path
:
'
/root/acets-app/merge_requests/22/commit_change_content
'
,
merge_commit_path
:
'
http://localhost:3000/root/acets-app/commit/53027d060246c8f47e4a9310fb332aa52f221775
'
,
troubleshooting_docs_path
:
'
help
'
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment