summaryrefslogtreecommitdiff
path: root/addons/web
diff options
context:
space:
mode:
authorJulien Mougenot <jum@odoo.com>2020-06-19 07:06:29 +0000
committerAaron Bohy <aab@odoo.com>2020-06-22 13:04:01 +0000
commit96fcefb6f1fe3fb5a5f197e2635e6d71d9a1d9dd (patch)
tree9ef68b1b604994ae62132d903ad819be3d2c7e01 /addons/web
parenta6cd6d5a892f5a0501c0e81fe583bd64befff5d0 (diff)
[IMP] web: qunit: remove tooltips after each test
Leftover tooltips may make following tests fail, which isn't what we want as a test shouldn't impact another one. X-original-commit: 17a4c72b9a86186c7690bdba5e62ccd64ab2f77a
Diffstat (limited to 'addons/web')
-rw-r--r--addons/web/static/tests/helpers/qunit_config.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/web/static/tests/helpers/qunit_config.js b/addons/web/static/tests/helpers/qunit_config.js
index ce235ab3ecf..1cc44ea18ba 100644
--- a/addons/web/static/tests/helpers/qunit_config.js
+++ b/addons/web/static/tests/helpers/qunit_config.js
@@ -188,6 +188,10 @@ QUnit.on('OdooAfterTestHook', function () {
}
}
+ for (const tooltip of document.querySelectorAll('.tooltip')) {
+ tooltip.remove();
+ }
+
// check for leftovers in #qunit-fixture
var qunitFixture = document.getElementById('qunit-fixture');
if (qunitFixture.children.length) {