summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/tools/debug_manager.js
diff options
context:
space:
mode:
authorChristophe Monniez <moc@odoo.com>2019-03-16 17:38:01 +0000
committerChristophe Monniez <moc@odoo.com>2019-03-21 12:15:30 +0000
commite48040677382a378a7bdb2d755d0ff23e19c82ab (patch)
tree697c00c62646ecf4c65e59ac2838d9d7e14cde27 /addons/web/static/src/js/tools/debug_manager.js
parent31f199597fc0dbefc6b875dc5a196fbe132e1c4d (diff)
[FIX] web: click on home menu on next tick
Since odoo/enterprise@b830ea7ed2a, the enterprise home menu is asynchrnonous. Because of that, the clientActionCount variable is updated too late and this counter is screwed up, making the test fail. With this commit a setTimeout 0 is used to click on home menu in the next tick and then update the current action count. Also * the test is adapted to stop immediately when an error is catched. * the initial click on home menu is moved into debug manager because the python test launcher uses the correct location already. Thanks to @VincentSchippefilt and @aab-odoo closes odoo/odoo#31949 Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/tools/debug_manager.js')
-rw-r--r--addons/web/static/src/js/tools/debug_manager.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/web/static/src/js/tools/debug_manager.js b/addons/web/static/src/js/tools/debug_manager.js
index 172148e03ef..54e98bbb87e 100644
--- a/addons/web/static/src/js/tools/debug_manager.js
+++ b/addons/web/static/src/js/tools/debug_manager.js
@@ -213,6 +213,8 @@ var DebugManager = Widget.extend({
});
},
perform_click_everywhere_test: function () {
+ var $homeMenu = $("nav.o_main_navbar > a.o_menu_toggle.fa-th");
+ $homeMenu.click();
startClickEverywhere();
},
split_assets: function() {