summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/helpers/test_utils.js
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2020-11-13 16:29:36 +0000
committerNicolas Lempereur <nle@odoo.com>2020-12-15 16:41:34 +0000
commitff61ab121e3fb3c0c9b269c0dc9a65b3f1c8e664 (patch)
tree4f98e5dcd3319abb2607f234c95a20b706ff87cb /addons/web/static/tests/helpers/test_utils.js
parent28e1f9f5c6f5064c4c861ebfa96f34c0d3ba26cb (diff)
[FIX] web: show warning on create onchange
When you create a new record, you will have in this order: - default_get - onchange (can trigger a warning) - _pushController => close all dialogs since ea2207afeab8c This is an issue since the possible warning is directly hidden to the user. Without the change, the added test failed with: Warning modal should be opened "executing a window action with onchange warning do not hide it": Found 0 elements to click on, instead of 1 opw-2342273 opw-2374051 closes #61732 closes odoo/odoo#63270 X-original-commit: 0784d9ab562379f31558fa44f9b9540c36a03760 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
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 e998ab14de8..33aa43279e8 100644
--- a/addons/web/static/tests/helpers/test_utils.js
+++ b/addons/web/static/tests/helpers/test_utils.js
@@ -118,6 +118,7 @@ odoo.define('web.test_utils', async function (require) {
// to load xml files that are normally lazy loaded by specific widgets).
await Promise.all([
session.is_bound,
+ ajax.loadXML('/web/static/src/xml/crash_manager.xml', core.qweb),
ajax.loadXML('/web/static/src/xml/debug.xml', core.qweb),
ajax.loadXML('/web/static/src/xml/dialog.xml', core.qweb),
ajax.loadXML('/web/static/src/xml/translation_dialog.xml', core.qweb),