From 4d3a77638947070c2fa2f6c260ad062e8cc70390 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Mon, 16 Jul 2018 13:53:49 +0200 Subject: [PATCH] [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. --- addons/web/static/tests/helpers/test_utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');