Fix failing test (when run in isolation)

This commit is contained in:
JC Brand 2020-02-04 13:46:43 +01:00
parent f854e477b7
commit 6e8a987694

View File

@ -527,6 +527,7 @@
}).c('body').t(message).tree();
await view.model.onMessage(msg);
await u.waitUntil(() => view.el.querySelector('.chat-msg__text a'));
view.el.querySelector('.chat-msg__text a').click();
await u.waitUntil(() => _converse.chatboxes.length === 3)
expect(_.includes(_converse.chatboxes.pluck('id'), 'coven@chat.shakespeare.lit')).toBe(true);