Bump timeouts in a desperate attempt to appease the CI gods

This commit is contained in:
JC Brand 2018-05-09 15:42:57 +02:00
parent 71c12c385a
commit 270c9b7c0e

View File

@ -463,7 +463,7 @@
test_utils.waitUntil(function () { test_utils.waitUntil(function () {
return utils.isVisible(view.el.querySelector('.toggle-smiley .emoji-picker-container')); return utils.isVisible(view.el.querySelector('.toggle-smiley .emoji-picker-container'));
}, 150).then(function () { }, 500).then(function () {
var picker = view.el.querySelector('.toggle-smiley .emoji-picker-container'); var picker = view.el.querySelector('.toggle-smiley .emoji-picker-container');
var items = picker.querySelectorAll('.emoji-picker li'); var items = picker.querySelectorAll('.emoji-picker li');
items[0].click() items[0].click()
@ -472,25 +472,25 @@
setTimeout(function () { timeout = true; }, 100); setTimeout(function () { timeout = true; }, 100);
return test_utils.waitUntil(function () { return test_utils.waitUntil(function () {
return timeout; return timeout;
}, 300); }, 500);
}).then(function () { }).then(function () {
timeout = false; timeout = false;
toolbar.querySelector('li.toggle-smiley').click(); // Close the panel again toolbar.querySelector('li.toggle-smiley').click(); // Close the panel again
return test_utils.waitUntil(function () { return test_utils.waitUntil(function () {
return !view.el.querySelector('.toggle-smiley .toolbar-menu').offsetHeight; return !view.el.querySelector('.toggle-smiley .toolbar-menu').offsetHeight;
}, 300); }, 500);
}).then(function () { }).then(function () {
setTimeout(function () { timeout = true; }, 100); setTimeout(function () { timeout = true; }, 100);
return test_utils.waitUntil(function () { return test_utils.waitUntil(function () {
return timeout; return timeout;
}, 300); }, 500);
}).then(function () { }).then(function () {
toolbar.querySelector('li.toggle-smiley').click(); toolbar.querySelector('li.toggle-smiley').click();
expect(view.toggleEmojiMenu).toHaveBeenCalled(); expect(view.toggleEmojiMenu).toHaveBeenCalled();
return test_utils.waitUntil(function () { return test_utils.waitUntil(function () {
var $picker = $(view.el).find('.toggle-smiley .emoji-picker-container'); var $picker = $(view.el).find('.toggle-smiley .emoji-picker-container');
return u.isVisible($picker[0]); return u.isVisible($picker[0]);
}, 300); }, 500);
}).then(function () { }).then(function () {
var nodes = view.el.querySelectorAll('.toggle-smiley ul li'); var nodes = view.el.querySelectorAll('.toggle-smiley ul li');
nodes[nodes.length-1].click(); nodes[nodes.length-1].click();