formatting in test
This commit is contained in:
parent
b5e58c3e08
commit
ab7e591224
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue