summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/helpers/test_utils.js
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2018-07-16 13:53:49 +0200
committerChristophe Matthieu <chm@odoo.com>2018-08-13 17:09:28 +0200
commit4d3a77638947070c2fa2f6c260ad062e8cc70390 (patch)
tree1d6a596859e301383896e91b89db7377c83cabe3 /addons/web/static/tests/helpers/test_utils.js
parent8f216482b814ac02389503881bd54c5598fe82c9 (diff)
[IMP] web: avoid failed tests affecting the next ones
When using positional clicks (among other examples) in tests, a previous failed test might affect a next one because the assert failures are displayed on the top of tests.
Diffstat (limited to 'addons/web/static/tests/helpers/test_utils.js')
-rw-r--r--addons/web/static/tests/helpers/test_utils.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/tests/helpers/test_utils.js b/addons/web/static/tests/helpers/test_utils.js
index c2687e40372..b9a783f3bbd 100644
--- a/addons/web/static/tests/helpers/test_utils.js
+++ b/addons/web/static/tests/helpers/test_utils.js
@@ -98,7 +98,7 @@ var createActionManager = function (params) {
},
});
addMockEnvironment(widget, _.defaults(params, {debounce: false}));
- widget.appendTo($target);
+ widget.prependTo($target);
widget.$el.addClass('o_web_client');
if (config.device.isMobile) {
widget.$el.addClass('o_touch_device');