[IMP] web: in test use prepend instead of append to create the view

Prevents false positive error in tests.

Issue: If an error occurs that the view remains visible, then other tests that use a pointer or focus can not be performed. Errors occur because the new views are introduced afterwards and are therefore not always visible.
This commit is contained in:
Christophe Matthieu
2017-08-30 14:38:28 +02:00
parent eba134ec18
commit 7e3f8f2140
@@ -152,7 +152,7 @@ function createAsyncView(params) {
});
// reproduce the DOM environment of views
var $web_client = $('<div>').addClass('o_web_client').appendTo($target);
var $web_client = $('<div>').addClass('o_web_client').prependTo($target);
var $control_panel = $('<div>').addClass('o_control_panel').appendTo($web_client);
var $content = $('<div>').addClass('o_content').appendTo($web_client);
var $view_manager = $('<div>').addClass('o_view_manager_content').appendTo($content);