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
9b09ff09
Commit
9b09ff09
authored
Apr 25, 2017
by
Regis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add more assertions
parent
a39a5caf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
spec/javascripts/issue_show/issue_title_description_spec.js
spec/javascripts/issue_show/issue_title_description_spec.js
+8
-2
No files found.
spec/javascripts/issue_show/issue_title_description_spec.js
View file @
9b09ff09
...
...
@@ -13,7 +13,7 @@ const issueShowInterceptor = (request, next) => {
}));
};
describe
(
'
Issue Title
'
,
()
=>
{
f
describe
(
'
Issue Title
'
,
()
=>
{
const
comps
=
{
IssueTitleComponent
:
{},
};
...
...
@@ -39,8 +39,14 @@ describe('Issue Title', () => {
// need setTimeout because actual setTimeout in code :P
setTimeout
(()
=>
{
expect
(
issueShowComponent
.
$el
.
querySelector
(
'
.title
'
).
innerHTML
)
expect
(
document
.
querySelector
(
'
title
'
).
innerText
)
.
toContain
(
'
this is a title
'
);
expect
(
issueShowComponent
.
$el
.
querySelector
(
'
.title
'
).
innerHTML
)
.
toContain
(
'
<p>this is a title</p>
'
);
expect
(
issueShowComponent
.
$el
.
querySelector
(
'
.wiki
'
).
innerHTML
)
.
toContain
(
'
<p>this is a description!</p>
'
);
expect
(
issueShowComponent
.
$el
.
querySelector
(
'
.js-task-list-field
'
).
innerText
)
.
toContain
(
'
this is a description
'
);
done
();
},
10
);
// 10ms is just long enough for the update hook to fire
...
...
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