summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/helpers/test_utils_file.js
AgeCommit message (Collapse)Author
2020-08-13[FIX] mail: fix full composer opening with attachmentsXavier Dubuc
task-2307201 closes odoo/odoo#55678 X-original-commit: 9c47bb0b0034a3419a0c6e3267d90cb520a59535 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com> Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2019-08-08[IMP] web: adds multi file drag and drop supportThanh Dodeur
This commit adds a function to mock multi-file drops. Task: #2002553 closes odoo/odoo#35435 Signed-off-by: Martin Geubelle (mge) <mge@openerp.com>
2019-03-06[REF] web: adapt code after jQuery updateVincent Schippefilt
Part of task 1896658 Co-authored-by: Aaron Bohy <aab@odoo.com> Co-authored-by: Christophe Matthieu <chm@odoo.com> Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com> Co-authored-by: David Monjoie <dmo@odoo.com> Co-authored-by: Martin Geubelle <mge@odoo.com> Co-authored-by: svs-odoo <svs@odoo.com> Co-authored-by: Vincent Schippefilt <vsc@odoo.com>
2018-11-26[ADD] web:tests: test utils for drag/drop filesAlexandre Kühn
This commit adds test helper functions to drag and drop files: - `createFile`: create a file that can be used for drag and drop in tests. - `dragoverFile`: to drag a file created from `createFile` over a DOM element. - `dropFile`: to drop a file created from `createFile` on a DOM element. These utility functions are available from `testUtils.file`. Example of usage: ```js var testUtils = require('web.test_utils'); testUtils.file.createFile({ name: 'text.txt', content: 'hello, world', contentType: 'text/plain', }).then(function (file) { testUtils.file.dragoverFile($el, file); testUtils.file.dropFile($el, file); }); ```