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
773c6303
Commit
773c6303
authored
Mar 02, 2021
by
Sarah Groff Hennigh-Palermo
Committed by
Andrew Fontaine
Mar 02, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Links Layer: Update Alert Logic
parent
e8043280
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletion
+19
-1
app/assets/javascripts/pipelines/components/graph_shared/links_layer.vue
...scripts/pipelines/components/graph_shared/links_layer.vue
+1
-1
spec/frontend/pipelines/graph_shared/links_layer_spec.js
spec/frontend/pipelines/graph_shared/links_layer_spec.js
+18
-0
No files found.
app/assets/javascripts/pipelines/components/graph_shared/links_layer.vue
View file @
773c6303
...
@@ -43,7 +43,7 @@ export default {
...
@@ -43,7 +43,7 @@ export default {
},
0
);
},
0
);
},
},
showAlert
()
{
showAlert
()
{
return
!
this
.
showLinkedLayers
&&
!
this
.
alertDismissed
;
return
!
this
.
containerZero
&&
!
this
.
showLinkedLayers
&&
!
this
.
alertDismissed
;
},
},
showLinkedLayers
()
{
showLinkedLayers
()
{
return
(
return
(
...
...
spec/frontend/pipelines/graph_shared/links_layer_spec.js
View file @
773c6303
...
@@ -79,6 +79,24 @@ describe('links layer component', () => {
...
@@ -79,6 +79,24 @@ describe('links layer component', () => {
});
});
});
});
describe
(
'
with width or height measurement at 0
'
,
()
=>
{
beforeEach
(()
=>
{
createComponent
({
props
:
{
containerMeasurements
:
{
width
:
0
,
height
:
100
}
}
});
});
it
(
'
renders the default slot
'
,
()
=>
{
expect
(
wrapper
.
html
()).
toContain
(
slotContent
);
});
it
(
'
does not render the alert component
'
,
()
=>
{
expect
(
findAlert
().
exists
()).
toBe
(
false
);
});
it
(
'
does not render the inner links component
'
,
()
=>
{
expect
(
findLinksInner
().
exists
()).
toBe
(
false
);
});
});
describe
(
'
interactions
'
,
()
=>
{
describe
(
'
interactions
'
,
()
=>
{
beforeEach
(()
=>
{
beforeEach
(()
=>
{
createComponent
({
mountFn
:
mount
,
props
:
{
pipelineData
:
tooManyStages
}
});
createComponent
({
mountFn
:
mount
,
props
:
{
pipelineData
:
tooManyStages
}
});
...
...
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