diff options
| author | Pierre Paridans <app@odoo.com> | 2021-01-04 20:35:56 +0000 |
|---|---|---|
| committer | Pierre Paridans <app@odoo.com> | 2021-01-05 20:49:52 +0000 |
| commit | b4ceaa06b2c3ca4b9a1e95dc815d18867c49fd80 (patch) | |
| tree | 50e6d33ac6c05dcaff564d5bc41f45aa7d10969d /addons/web/static/tests | |
| parent | 7f8e0fe4d2a47968bdcb136fd7e6d96a184f9eae (diff) | |
[FIX] web: qunit: always log name of failing qunit-fixture content test
Follow-up of odoo/odoo@598d036b59012af0a95894d759fe3b6276fc8ccb
closes odoo/odoo#64046
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
Diffstat (limited to 'addons/web/static/tests')
| -rw-r--r-- | addons/web/static/tests/helpers/qunit_config.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web/static/tests/helpers/qunit_config.js b/addons/web/static/tests/helpers/qunit_config.js index 158c67b2891..575c8022d2b 100644 --- a/addons/web/static/tests/helpers/qunit_config.js +++ b/addons/web/static/tests/helpers/qunit_config.js @@ -183,6 +183,7 @@ QUnit.on('OdooAfterTestHook', function (info) { // check for leftovers in #qunit-fixture const qunitFixture = document.getElementById('qunit-fixture'); if (qunitFixture.children.length) { + console.error(`Test ${info.moduleName} > ${info.testName}`); console.error('#qunit-fixture still contains elements:' + '\n#qunit-fixture HTML:\n' + qunitFixture.outerHTML); QUnit.pushFailure(`#qunit-fixture still contains elements`); |
