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
fd4cf455
Commit
fd4cf455
authored
Jun 02, 2017
by
Bryce Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix up tooltip specs [ci-skip].
parent
fb2640d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
spec/javascripts/pipelines/graph/linked_pipeline_spec.js
spec/javascripts/pipelines/graph/linked_pipeline_spec.js
+8
-6
No files found.
spec/javascripts/pipelines/graph/linked_pipeline_spec.js
View file @
fd4cf455
...
...
@@ -70,13 +70,15 @@ describe('Linked pipeline', () => {
});
it
(
'
should correctly compute the tooltip text
'
,
()
=>
{
expect
(
this
.
linkedPipeline
.
tooltipText
).
toContain
(
mockPipeline
.
project
N
ame
);
expect
(
this
.
linkedPipeline
.
tooltipText
).
toContain
(
mockPipeline
.
pipelineState
.
label
);
expect
(
this
.
linkedPipeline
.
tooltipText
).
toContain
(
mockPipeline
.
project
.
n
ame
);
expect
(
this
.
linkedPipeline
.
tooltipText
).
toContain
(
mockPipeline
.
details
.
status
.
label
);
});
it
(
'
should set the tooltip text as the title attribute
'
,
()
=>
{
const
titleAttr
=
this
.
linkedPipeline
.
$el
.
querySelector
(
'
.linked-pipeline-content
'
).
getAttribute
(
'
title
'
);
expect
(
titleAttr
).
toContain
(
mockPipeline
.
projectName
);
expect
(
titleAttr
).
toContain
(
mockPipeline
.
pipelineState
.
label
);
it
(
'
should render the tooltip text as the title attribute
'
,
()
=>
{
const
tooltipRef
=
this
.
linkedPipeline
.
$el
.
querySelector
(
'
.linked-pipeline-content
'
);
const
titleAttr
=
tooltipRef
.
getAttribute
(
'
data-original-title
'
);
expect
(
titleAttr
).
toContain
(
mockPipeline
.
project
.
name
);
expect
(
titleAttr
).
toContain
(
mockPipeline
.
details
.
status
.
label
);
});
});
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