diff --git a/addons/web/static/src/webclient/clickbot/clickbot.js b/addons/web/static/src/webclient/clickbot/clickbot.js index 92dd27974b9..7134a29a154 100644 --- a/addons/web/static/src/webclient/clickbot/clickbot.js +++ b/addons/web/static/src/webclient/clickbot/clickbot.js @@ -14,7 +14,7 @@ const MOUSE_EVENTS = ["mouseover", "mouseenter", "mousedown", "mouseup", "click" const BLACKLISTED_MENUS = [ "base.menu_theme_store", // Open a new tab "base.menu_third_party", // Open a new tab - "event_barcode.menu_event_registration_desk", // there's no way to come back from this menu (tablet mode) + "event.menu_event_registration_desk", // there's no way to come back from this menu (tablet mode) "hr_attendance.menu_hr_attendance_kiosk_no_user_mode", // same here (tablet mode) "account.menu_action_account_bank_journal_form", // Modal in an iFrame ]; @@ -358,10 +358,11 @@ async function testViews() { async function testMenuItem(element) { const menu = element.dataset.menuXmlid; const menuDescription = element.innerText.trim() + " " + menu; - browser.console.log(`Testing menu ${menuDescription}`); if (BLACKLISTED_MENUS.includes(menu)) { + browser.console.log(`Skipping blacklisted menu ${menuDescription}`); return Promise.resolve(); // Skip black listed menus } + browser.console.log(`Testing menu ${menuDescription}`); testedMenus.push(menu); const startActionCount = actionCount; await triggerClick(element, `menu item "${element.innerText.trim()}"`); @@ -462,8 +463,6 @@ async function _clickEverywhere(xmlId) { } finally { cleanup(); } - console.log(testedApps); - console.log(testedMenus); } function clickEverywhere(xmlId, light) {