[FIX] web: restore post-test check for qunit-fixture elements
Disabled in odoo/odoo@b992619840 by mistake. Also, restore the "failfast" for the QUnit tests (disabled in the same commit...). X-original-commit: 7f8e0fe4d2a47968bdcb136fd7e6d96a184f9eae
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user