From 221412630d6a12a8677ff9c9ffbafa3c85ebc548 Mon Sep 17 00:00:00 2001 From: Jorge Pinna Puissant Date: Fri, 25 Feb 2022 08:47:57 +0000 Subject: [PATCH] [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 --- addons/web/static/tests/qunit.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/web/static/tests/qunit.js b/addons/web/static/tests/qunit.js index 8451d76ef9d..1677bd76157 100644 --- a/addons/web/static/tests/qunit.js +++ b/addons/web/static/tests/qunit.js @@ -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); };