diff options
| author | Julien Mougenot <jum@odoo.com> | 2020-06-19 07:06:29 +0000 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2020-06-22 13:04:01 +0000 |
| commit | 96fcefb6f1fe3fb5a5f197e2635e6d71d9a1d9dd (patch) | |
| tree | 9ef68b1b604994ae62132d903ad819be3d2c7e01 /addons/web/static | |
| parent | a6cd6d5a892f5a0501c0e81fe583bd64befff5d0 (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/static')
| -rw-r--r-- | addons/web/static/tests/helpers/qunit_config.js | 4 |
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) { |
