BigW Consortium Gitlab

Commit ab7e5912 by Regis

formatting in test

parent b5e58c3e
...@@ -41,12 +41,19 @@ describe('Issue Title', () => { ...@@ -41,12 +41,19 @@ describe('Issue Title', () => {
setTimeout(() => { setTimeout(() => {
expect(document.querySelector('title').innerText) expect(document.querySelector('title').innerText)
.toContain('this is a title'); .toContain('this is a title');
expect(issueShowComponent.$el.querySelector('.title').innerHTML) expect(issueShowComponent.$el.querySelector('.title').innerHTML)
.toContain('<p>this is a title</p>'); .toContain('<p>this is a title</p>');
expect(issueShowComponent.$el.querySelector('.wiki').innerHTML) expect(issueShowComponent.$el.querySelector('.wiki').innerHTML)
.toContain('<p>this is a description!</p>'); .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'); .toContain('this is a description');
done(); done();
}, 10); }, 10);
// 10ms is just long enough for the update hook to fire // 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