summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/tools/test_menus.js
diff options
context:
space:
mode:
authorChristophe Monniez <moc@odoo.com>2019-05-13 13:58:55 +0000
committerChristophe Monniez <moc@odoo.com>2019-05-13 13:58:55 +0000
commitbabef9ecfc9ef87c1435feae3751d6023261faf0 (patch)
treee73846f236b379c411142c50f4f8dee4d2b83f4f /addons/web/static/src/js/tools/test_menus.js
parentde4278c6760837439cee2d9401e8c9d68d0cf9eb (diff)
[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) <moc@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/tools/test_menus.js')
-rw-r--r--addons/web/static/src/js/tools/test_menus.js6
1 files changed, 5 insertions, 1 deletions
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();