diff --git a/addons/point_of_sale/static/src/js/debug_manager.js b/addons/point_of_sale/static/src/js/debug_manager.js index 12cf87d1279..c04fe13595c 100644 --- a/addons/point_of_sale/static/src/js/debug_manager.js +++ b/addons/point_of_sale/static/src/js/debug_manager.js @@ -11,7 +11,7 @@ function runPoSJSTests({ env }) { name: env._t("JS Tests"), target: "new", type: "ir.actions.act_url", - url: "/pos/ui/tests?mod=*", + url: "/pos/ui/tests?debug=assets", }); }, sequence: 35, diff --git a/addons/web/static/src/core/debug/debug_providers.js b/addons/web/static/src/core/debug/debug_providers.js index a3a10f7b66a..9a347f22617 100644 --- a/addons/web/static/src/core/debug/debug_providers.js +++ b/addons/web/static/src/core/debug/debug_providers.js @@ -28,6 +28,22 @@ commandProviderRegistry.add("debug", { category: "debug", name: env._t("Deactivate debug mode"), }); + result.push({ + action() { + const runTestsURL = browser.location.origin + "/web/tests?debug=assets"; + browser.open(runTestsURL); + }, + category: "debug", + name: env._t("Run JS Tests"), + }); + result.push({ + action() { + const runTestsURL = browser.location.origin + "/web/tests/mobile?debug=assets"; + browser.open(runTestsURL); + }, + category: "debug", + name: env._t("Run JS Mobile Tests"), + }); } else { if (options.searchValue.toLowerCase() === "debug") { result.push({ diff --git a/addons/web/static/src/webclient/debug_items.js b/addons/web/static/src/webclient/debug_items.js index fee3f3375bf..d1ed7ce8b83 100644 --- a/addons/web/static/src/webclient/debug_items.js +++ b/addons/web/static/src/webclient/debug_items.js @@ -6,7 +6,7 @@ import dialogs from "web.view_dialogs"; import { ComponentAdapter } from "web.OwlCompatibility"; function runJSTestsItem({ env }) { - const runTestsURL = browser.location.origin + "/web/tests?mod=*"; + const runTestsURL = browser.location.origin + "/web/tests?debug=assets"; return { type: "item", description: env._t("Run JS Tests"), @@ -19,7 +19,7 @@ function runJSTestsItem({ env }) { } function runJSTestsMobileItem({ env }) { - const runTestsMobileURL = browser.location.origin + "/web/tests/mobile?mod=*"; + const runTestsMobileURL = browser.location.origin + "/web/tests/mobile?debug=assets"; return { type: "item", description: env._t("Run JS Mobile Tests"),