[FIX] barcodes: remove remaining elements from tests

Since the QUnit config is more strict as to what is allowed to stay in
the DOM after tests, a test has been updated to clean its elements
before the test ends.

closes odoo/odoo#53705

X-original-commit: 33b567a777a69a4da627ff1d62b46ad09127f86d
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Signed-off-by: Julien Mougenot (jum) <jum@odoo.com>
This commit is contained in:
Julien Mougenot
2020-06-26 01:28:13 +00:00
parent a5aa6f7e51
commit ba86678437
@@ -69,6 +69,8 @@ odoo.define('barcodes.barcode_mobile_tests', function () {
// Rebind keyboard events
barcodeEvents.stop();
barcodeEvents.start();
document.querySelector('input[name=barcode]').remove();
});
});
});