[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
This commit is contained in:
committed by
Aaron Bohy
parent
a6cd6d5a89
commit
96fcefb6f1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user