[FIX] web: extend the timeout when using QUnit.debug

This commit will also ensure that the document is ready before adding
the debug class.

Part-of: odoo/odoo#84314
This commit is contained in:
Jorge Pinna Puissant
2022-02-25 12:35:43 +00:00
parent 09b4668c6b
commit 221412630d
+2 -1
View File
@@ -309,8 +309,9 @@
});
QUnit.debug = (name, cb) => {
document.body.classList.add("debug");
owl.whenReady(() => document.body.classList.add("debug"));
QUnit.config.debug = true;
QUnit.config.testTimeout = 60 * 60 * 1000;
QUnit.only(name, cb);
};