Commit ab7e5912 authored by Regis's avatar Regis

formatting in test

parent b5e58c3e
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment