[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 <dam@odoo.com>
This commit is contained in:
Aaron Bohy
2022-02-16 11:30:50 +00:00
parent 48134b44d6
commit 290ddb3686
+1
View File
@@ -309,6 +309,7 @@
});
QUnit.debug = (name, cb) => {
document.body.classList.add("debug");
QUnit.config.debug = true;
QUnit.only(name, cb);
};