diff options
| author | Pierre Paridans <app@odoo.com> | 2021-01-04 20:30:45 +0000 |
|---|---|---|
| committer | Pierre Paridans <app@odoo.com> | 2021-01-05 20:49:04 +0000 |
| commit | 7f8e0fe4d2a47968bdcb136fd7e6d96a184f9eae (patch) | |
| tree | 48dfbd8f45dc3585360c117697a1cc3622e0007e /addons | |
| parent | 3fd40ba2030fef7dccf4046a932e3b3a172dc53f (diff) | |
[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...).
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/web/static/tests/helpers/qunit_config.js | 6 | ||||
| -rw-r--r-- | addons/web/tests/test_js.py | 2 |
2 files changed, 4 insertions, 4 deletions
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); } diff --git a/addons/web/tests/test_js.py b/addons/web/tests/test_js.py index 8a74daecbd2..4d97e5f28d0 100644 --- a/addons/web/tests/test_js.py +++ b/addons/web/tests/test_js.py @@ -12,7 +12,7 @@ class WebSuite(odoo.tests.HttpCase): def test_js(self): # webclient desktop test suite - self.browser_js('/web/tests?mod=web', "", "", login='admin', timeout=1800) + self.browser_js('/web/tests?mod=web&failfast', "", "", login='admin', timeout=1800) def test_check_suite(self): # verify no js test is using `QUnit.only` as it forbid any other test to be executed |
