Commit ee8f37b4 authored by JC Brand's avatar JC Brand

Bump waiting time to avoid test failures

parent 59ca7bae
......@@ -1228,7 +1228,7 @@
test_utils.waitUntil(function () {
return view.$el.find('.chat-content').find('.chat-message img').length;
}, 300).then(function () {
}, 500).then(function () {
expect(view.sendMessage).toHaveBeenCalled();
var msg = view.$el.find('.chat-content').find('.chat-message').last().find('.chat-msg-content');
expect(msg.html()).toEqual('<img src="'+message+'" class="chat-image">');
......@@ -1236,7 +1236,7 @@
test_utils.sendMessage(view, message);
return test_utils.waitUntil(function () {
return view.$el.find('.chat-content').find('.chat-message img').length === 2;
}, 300)
}, 500)
}).then(function () {
expect(view.sendMessage).toHaveBeenCalled();
var msg = view.$el.find('.chat-content').find('.chat-message').last().find('.chat-msg-content');
......
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