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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
7680f95d
Commit
7680f95d
authored
Jun 06, 2017
by
Bryce Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Re-add omitted specs.
parent
ee2b4cee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
4 deletions
+19
-4
spec/javascripts/pipelines/graph/graph_component_spec.js
spec/javascripts/pipelines/graph/graph_component_spec.js
+19
-4
No files found.
spec/javascripts/pipelines/graph/graph_component_spec.js
View file @
7680f95d
...
@@ -19,7 +19,7 @@ describe('graph component', function () {
...
@@ -19,7 +19,7 @@ describe('graph component', function () {
describe
(
'
while is loading
'
,
function
()
{
describe
(
'
while is loading
'
,
function
()
{
beforeEach
(
function
()
{
beforeEach
(
function
()
{
this
.
component
=
new
GraphComponent
({
this
.
component
=
new
GraphComponent
({
propsData
:
Object
.
assign
(
defaultPropsData
,
{
isLoading
:
true
})
,
propsData
:
{
pipeline
:
{},
isLoading
:
true
}
,
}).
$mount
();
}).
$mount
();
});
});
...
@@ -41,15 +41,30 @@ describe('graph component', function () {
...
@@ -41,15 +41,30 @@ describe('graph component', function () {
});
});
it
(
'
should not include the loading icon
'
,
function
()
{
it
(
'
should not include the loading icon
'
,
function
()
{
expect
(
this
.
component
.
$el
.
querySelector
(
'
.
loading-icon
'
)).
toBe
(
null
);
expect
(
this
.
component
.
$el
.
querySelector
(
'
.
fa-spinner
'
)).
toBeNull
(
);
});
});
it
(
'
should include the stage column list
'
,
function
()
{
it
(
'
should include the stage column list
'
,
function
()
{
expect
(
this
.
component
.
$el
.
querySelector
(
'
.stage-column-list
'
)).
toBeDefined
();
expect
(
this
.
component
.
$el
.
querySelector
(
'
.stage-column-list
'
)).
not
.
toBeNull
();
});
it
(
'
should include the no-margin class on the first child
'
,
function
()
{
const
firstStageColumnElement
=
this
.
component
.
$el
.
querySelector
(
'
.stage-column-list .stage-column
'
);
expect
(
firstStageColumnElement
.
classList
.
contains
(
'
no-margin
'
)).
toEqual
(
true
);
});
it
(
'
should include the has-only-one-job class on the first child
'
,
function
()
{
const
firstStageColumnElement
=
this
.
component
.
$el
.
querySelector
(
'
.stage-column-list .stage-column
'
);
expect
(
firstStageColumnElement
.
classList
.
contains
(
'
has-only-one-job
'
)).
toEqual
(
true
);
});
it
(
'
should include the left-margin class on the second child
'
,
function
()
{
const
firstStageColumnElement
=
this
.
component
.
$el
.
querySelector
(
'
.stage-column-list .stage-column:last-child
'
);
expect
(
firstStageColumnElement
.
classList
.
contains
(
'
left-margin
'
)).
toEqual
(
true
);
});
});
it
(
'
should include the has-linked-pipelines flag
'
,
function
()
{
it
(
'
should include the has-linked-pipelines flag
'
,
function
()
{
expect
(
this
.
component
.
$el
.
querySelector
(
'
.has-linked-pipelines
'
)).
toBeDefined
();
expect
(
this
.
component
.
$el
.
querySelector
(
'
.has-linked-pipelines
'
)).
not
.
toBeNull
();
});
});
});
});
...
...
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