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
29ca04e5
Commit
29ca04e5
authored
Jul 16, 2020
by
peterhegman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix failing spec due to icon change
parent
73937308
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
spec/frontend/issuables_list/components/issuable_spec.js
spec/frontend/issuables_list/components/issuable_spec.js
+4
-7
No files found.
spec/frontend/issuables_list/components/issuable_spec.js
View file @
29ca04e5
...
...
@@ -76,8 +76,9 @@ describe('Issuable component', () => {
});
const
checkExists
=
findFn
=>
()
=>
findFn
().
exists
();
const
hasConfidentialIcon
=
()
=>
wrapper
.
findAll
(
GlIcon
).
wrappers
.
some
(
iconWrapper
=>
iconWrapper
.
props
(
'
name
'
)
===
'
eye-slash
'
);
const
hasIcon
=
(
iconName
,
iconWrapper
=
wrapper
)
=>
iconWrapper
.
findAll
(
GlIcon
).
wrappers
.
some
(
icon
=>
icon
.
props
(
'
name
'
)
===
iconName
);
const
hasConfidentialIcon
=
()
=>
hasIcon
(
'
eye-slash
'
);
const
findTaskStatus
=
()
=>
wrapper
.
find
(
'
.task-status
'
);
const
findOpenedAgoContainer
=
()
=>
wrapper
.
find
(
'
[data-testid="openedByMessage"]
'
);
const
findAuthor
=
()
=>
wrapper
.
find
({
ref
:
'
openedAgoByContainer
'
});
...
...
@@ -286,11 +287,7 @@ describe('Issuable component', () => {
it
(
'
renders milestone
'
,
()
=>
{
expect
(
findMilestone
().
exists
()).
toBe
(
true
);
expect
(
findMilestone
()
.
find
(
'
.fa-clock-o
'
)
.
exists
(),
).
toBe
(
true
);
expect
(
hasIcon
(
'
clock
'
,
findMilestone
())).
toBe
(
true
);
expect
(
findMilestone
().
text
()).
toEqual
(
TEST_MILESTONE
.
title
);
});
...
...
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