From 270c9b7c0e945af0c59717a867ec27f31d476301 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Wed, 9 May 2018 15:42:57 +0200 Subject: [PATCH] Bump timeouts in a desperate attempt to appease the CI gods --- spec/chatbox.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spec/chatbox.js b/spec/chatbox.js index f2a09bf7a..7fa9a2213 100644 --- a/spec/chatbox.js +++ b/spec/chatbox.js @@ -463,7 +463,7 @@ test_utils.waitUntil(function () { 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 items = picker.querySelectorAll('.emoji-picker li'); items[0].click() @@ -472,25 +472,25 @@ setTimeout(function () { timeout = true; }, 100); return test_utils.waitUntil(function () { return timeout; - }, 300); + }, 500); }).then(function () { timeout = false; toolbar.querySelector('li.toggle-smiley').click(); // Close the panel again return test_utils.waitUntil(function () { return !view.el.querySelector('.toggle-smiley .toolbar-menu').offsetHeight; - }, 300); + }, 500); }).then(function () { setTimeout(function () { timeout = true; }, 100); return test_utils.waitUntil(function () { return timeout; - }, 300); + }, 500); }).then(function () { toolbar.querySelector('li.toggle-smiley').click(); expect(view.toggleEmojiMenu).toHaveBeenCalled(); return test_utils.waitUntil(function () { var $picker = $(view.el).find('.toggle-smiley .emoji-picker-container'); return u.isVisible($picker[0]); - }, 300); + }, 500); }).then(function () { var nodes = view.el.querySelectorAll('.toggle-smiley ul li'); nodes[nodes.length-1].click();