From 734debfb3ab477cf98734887c5155b2e677b61ec Mon Sep 17 00:00:00 2001 From: Christophe Monniez Date: Fri, 19 Aug 2022 12:13:19 +0000 Subject: [PATCH] [FIX] web: increase clickbot click timeout It happens that some pages are exceeding the click timeout of ten seconds. Notably the settings, and as the settings are linked to different menu's, it's difficult to black-list them. closes odoo/odoo#98525 X-original-commit: 26665a5055842a40f3beb718bd63546758f190f4 Signed-off-by: Christophe Monniez (moc) --- addons/web/static/src/webclient/clickbot/clickbot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/webclient/clickbot/clickbot.js b/addons/web/static/src/webclient/clickbot/clickbot.js index 53619a2aa70..c001ce384ac 100644 --- a/addons/web/static/src/webclient/clickbot/clickbot.js +++ b/addons/web/static/src/webclient/clickbot/clickbot.js @@ -127,7 +127,7 @@ * @param {function} stopCondition a function that returns a boolean * @returns {Promise} that is rejected if the timeout is exceeded */ - function waitForCondition(stopCondition, tl = 10000) { + function waitForCondition(stopCondition, tl = 30000) { return new Promise(function (resolve, reject) { const interval = 250; let timeLimit = tl;