From 7f8e0fe4d2a47968bdcb136fd7e6d96a184f9eae Mon Sep 17 00:00:00 2001 From: Pierre Paridans Date: Mon, 4 Jan 2021 20:30:45 +0000 Subject: [FIX] web: restore post-test check for qunit-fixture elements Disabled in odoo/odoo@b992619840a70c600c50fac0383ad9396351af75 by mistake. Also, restore the "failfast" for the QUnit tests (disabled in the same commit...). --- addons/web/static/tests/helpers/qunit_config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'addons/web/static/tests') diff --git a/addons/web/static/tests/helpers/qunit_config.js b/addons/web/static/tests/helpers/qunit_config.js index a8c42fee8b3..158c67b2891 100644 --- a/addons/web/static/tests/helpers/qunit_config.js +++ b/addons/web/static/tests/helpers/qunit_config.js @@ -183,9 +183,9 @@ QUnit.on('OdooAfterTestHook', function (info) { // check for leftovers in #qunit-fixture const qunitFixture = document.getElementById('qunit-fixture'); if (qunitFixture.children.length) { - // console.error('#qunit-fixture still contains elements:' + - // '\n#qunit-fixture HTML:\n' + qunitFixture.outerHTML); - // QUnit.pushFailure(`#qunit-fixture still contains elements`); + console.error('#qunit-fixture still contains elements:' + + '\n#qunit-fixture HTML:\n' + qunitFixture.outerHTML); + QUnit.pushFailure(`#qunit-fixture still contains elements`); toRemove.push(...qunitFixture.children); } -- cgit v1.2.3