summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/helpers/test_utils.js
diff options
context:
space:
mode:
authorJulien Mougenot <jum@odoo.com>2019-08-23 10:35:36 +0000
committerJulien Mougenot <jum@odoo.com>2019-08-26 07:36:28 +0000
commit91ea5a2ca449549ba50f12c4a778421510ef84fc (patch)
tree7507bd4f9cf4ed734b35017bcba198a112716742 /addons/web/static/tests/helpers/test_utils.js
parent496fc0882d6e3b58a09a39a72c282a732eeb3531 (diff)
[REF] web,*: native event dispatching in test utils
*: mail,partner_autocomplete: adapted tests Added a new function to trigger the adequate type of event on an element (native JS event to DOM Nodes and jQuery event to jQuery objects), and refactored the generic event-triggering functions to call this new function.
Diffstat (limited to 'addons/web/static/tests/helpers/test_utils.js')
-rw-r--r--addons/web/static/tests/helpers/test_utils.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web/static/tests/helpers/test_utils.js b/addons/web/static/tests/helpers/test_utils.js
index 90a581e7b33..24ebb0db105 100644
--- a/addons/web/static/tests/helpers/test_utils.js
+++ b/addons/web/static/tests/helpers/test_utils.js
@@ -135,6 +135,7 @@ return Promise.all([
clickFirst: testUtilsDom.clickFirst,
clickLast: testUtilsDom.clickLast,
triggerEvents: testUtilsDom.triggerEvents,
+ triggerEvent: testUtilsDom.triggerEvent,
},
form: {
clickEdit: testUtilsForm.clickEdit,