summaryrefslogtreecommitdiff
path: root/spec/javascripts/issue_show
diff options
context:
space:
mode:
authorRegis <boudinot.regis@yahoo.com>2017-04-25 12:48:00 -0600
committerRegis <boudinot.regis@yahoo.com>2017-04-25 12:48:00 -0600
commitab7e59122437cbf64d731b6a27304d0f96dd2b2c (patch)
treeba588ee1ed244ca0c2a1b3935e6361cc1f08c3d8 /spec/javascripts/issue_show
parentb5e58c3e082c0b611b1527e72f9ae7a64f7a865a (diff)
downloadgitlab-ce-ab7e59122437cbf64d731b6a27304d0f96dd2b2c.tar.gz
formatting in test
Diffstat (limited to 'spec/javascripts/issue_show')
-rw-r--r--spec/javascripts/issue_show/issue_title_description_spec.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/spec/javascripts/issue_show/issue_title_description_spec.js b/spec/javascripts/issue_show/issue_title_description_spec.js
index 9148f16714b..756eda54f79 100644
--- a/spec/javascripts/issue_show/issue_title_description_spec.js
+++ b/spec/javascripts/issue_show/issue_title_description_spec.js
@@ -41,12 +41,19 @@ describe('Issue Title', () => {
setTimeout(() => {
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)
+
+ const hiddenText = issueShowComponent.$el
+ .querySelector('.js-task-list-field').innerText;
+
+ expect(hiddenText)
.toContain('this is a description');
+
done();
}, 10);
// 10ms is just long enough for the update hook to fire