From e48040677382a378a7bdb2d755d0ff23e19c82ab Mon Sep 17 00:00:00 2001 From: Christophe Monniez Date: Sat, 16 Mar 2019 17:38:01 +0000 Subject: [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) --- addons/web/static/src/js/tools/debug_manager.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'addons/web/static/src/js/tools/debug_manager.js') 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() { -- cgit v1.2.3