Fix failing test (when run in isolation)
This commit is contained in:
parent
f854e477b7
commit
6e8a987694
@ -527,6 +527,7 @@
|
|||||||
}).c('body').t(message).tree();
|
}).c('body').t(message).tree();
|
||||||
|
|
||||||
await view.model.onMessage(msg);
|
await view.model.onMessage(msg);
|
||||||
|
await u.waitUntil(() => view.el.querySelector('.chat-msg__text a'));
|
||||||
view.el.querySelector('.chat-msg__text a').click();
|
view.el.querySelector('.chat-msg__text a').click();
|
||||||
await u.waitUntil(() => _converse.chatboxes.length === 3)
|
await u.waitUntil(() => _converse.chatboxes.length === 3)
|
||||||
expect(_.includes(_converse.chatboxes.pluck('id'), 'coven@chat.shakespeare.lit')).toBe(true);
|
expect(_.includes(_converse.chatboxes.pluck('id'), 'coven@chat.shakespeare.lit')).toBe(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user