summaryrefslogtreecommitdiff
path: root/addons/barcodes/static/tests/barcode_mobile_tests.js
AgeCommit message (Collapse)Author
2020-06-26[FIX] barcodes: remove remaining elements from testsJulien Mougenot
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>
2019-03-18[FIX] barcodes: let focus in number, password, tel, phone inputsAdrien Dieudonne
Before this commit, users wasn't able to input values in some input elements like password, email and phone in mobile. Steps to reproduce: - Go to user - Select Preferences - Select Change password - Try to input something => The focus was lost and the keyboard disappeared In fact, a hidden input always have the focus when no other fields need it. This input is used to intercept a value from a barcode scanner. So now, we added some input types to avoid to set the focus on the barcode input. The barcode input is now always defined (even if not used in desktop) to be able to mock a Chrome mobile environment in a test. opw-1936712 opw-1948266 closes odoo/odoo#31841 Signed-off-by: Pierre Paridans <pparidans@users.noreply.github.com>