[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:
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user