From babef9ecfc9ef87c1435feae3751d6023261faf0 Mon Sep 17 00:00:00 2001 From: Christophe Monniez Date: Mon, 13 May 2019 13:58:55 +0000 Subject: [PATCH] [FIX] web: add a small delay before starting clickEverywhere When the clickEverywhere js test is started with base only, the web client opens the first app by default (see openFirstApp call in web_client.js). Unfortunately, the test clicks immediately on the apps menu and the client does not invalidate openFirstApp. Then, when trying to click on a filter, it does not exists anymore and leads to a timeout. The present timeout should solve the problem without refactoring the web client. closes odoo/odoo#33339 Signed-off-by: Christophe Monniez (moc) --- addons/web/static/src/js/tools/test_menus.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/addons/web/static/src/js/tools/test_menus.js b/addons/web/static/src/js/tools/test_menus.js index e274839c48d..c0fb55eee3d 100644 --- a/addons/web/static/src/js/tools/test_menus.js +++ b/addons/web/static/src/js/tools/test_menus.js @@ -44,8 +44,12 @@ } } - // Main function that starts orchestration of tests function clickEverywhere(){ + setTimeout(_clickEverywhere, 1000); + } + + // Main function that starts orchestration of tests + function _clickEverywhere(){ console.log("Starting ClickEverywhere test"); var startTime = performance.now() createWebClientHooks();