From 290ddb36860528f150107c524e119ed2342e59ee Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Wed, 16 Feb 2022 09:55:53 +0000 Subject: [PATCH] [IMP] web: tests: show dialogs when debugging a test By default, dialogs are hidden in tests, s.t. we don't see them flicker when running the test suite. There is a css rule to hide them, only if there's no "debug" classname on the body. This commit toggles this classname when a test is run with QUnit.debug. closes odoo/odoo#84694 Signed-off-by: Mathieu Duckerts-Antoine --- addons/web/static/tests/qunit.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/web/static/tests/qunit.js b/addons/web/static/tests/qunit.js index 54a39b5e6c1..bf266554c8d 100644 --- a/addons/web/static/tests/qunit.js +++ b/addons/web/static/tests/qunit.js @@ -309,6 +309,7 @@ }); QUnit.debug = (name, cb) => { + document.body.classList.add("debug"); QUnit.config.debug = true; QUnit.only(name, cb); };