From ba866784378dfe46c830b9e105eb078acce4a149 Mon Sep 17 00:00:00 2001 From: Julien Mougenot Date: Thu, 25 Jun 2020 11:23:04 +0000 Subject: [PATCH] [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) Signed-off-by: Julien Mougenot (jum) --- addons/barcodes/static/tests/barcode_mobile_tests.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/barcodes/static/tests/barcode_mobile_tests.js b/addons/barcodes/static/tests/barcode_mobile_tests.js index cb26da64c74..c030af9ce64 100644 --- a/addons/barcodes/static/tests/barcode_mobile_tests.js +++ b/addons/barcodes/static/tests/barcode_mobile_tests.js @@ -69,6 +69,8 @@ odoo.define('barcodes.barcode_mobile_tests', function () { // Rebind keyboard events barcodeEvents.stop(); barcodeEvents.start(); + + document.querySelector('input[name=barcode]').remove(); }); }); });