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
07742c02
Commit
07742c02
authored
Jun 13, 2017
by
winh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add failing test for #32987
parent
8cc9ab50
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
spec/javascripts/vue_mr_widget/components/mr_widget_pipeline_spec.js
...ripts/vue_mr_widget/components/mr_widget_pipeline_spec.js
+19
-0
No files found.
spec/javascripts/vue_mr_widget/components/mr_widget_pipeline_spec.js
View file @
07742c02
...
@@ -76,6 +76,25 @@ describe('MRWidgetPipeline', () => {
...
@@ -76,6 +76,25 @@ describe('MRWidgetPipeline', () => {
el
=
vm
.
$el
;
el
=
vm
.
$el
;
});
});
afterEach
(()
=>
{
vm
.
$destroy
();
});
describe
(
'
without a pipeline
'
,
()
=>
{
beforeEach
(()
=>
{
vm
.
mr
=
{
pipeline
:
null
};
});
it
(
'
should render message with spinner
'
,
(
done
)
=>
{
Vue
.
nextTick
(()
=>
{
expect
(
el
.
querySelector
(
'
.pipeline-id
'
)).
toBe
(
null
);
expect
(
el
.
innerText
.
trim
()).
toBe
(
'
Waiting for pipeline...
'
);
expect
(
el
.
querySelectorAll
(
'
i.fa.fa-spinner.fa-spin
'
).
length
).
toBe
(
1
);
done
();
});
});
});
it
(
'
should render template elements correctly
'
,
()
=>
{
it
(
'
should render template elements correctly
'
,
()
=>
{
expect
(
el
.
classList
.
contains
(
'
mr-widget-heading
'
)).
toBeTruthy
();
expect
(
el
.
classList
.
contains
(
'
mr-widget-heading
'
)).
toBeTruthy
();
expect
(
el
.
querySelectorAll
(
'
.ci-status-icon.ci-status-icon-success
'
).
length
).
toEqual
(
1
);
expect
(
el
.
querySelectorAll
(
'
.ci-status-icon.ci-status-icon-success
'
).
length
).
toEqual
(
1
);
...
...
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