[FIX] web: adapt clickeverywhere test to the controlpanel refactor

Since 4cd379cf6e the ControlPanel is now a child of the viewController.
This breaks the clickEveryWhere test.

With this commit, the view_controller selector is adapted in the clickEverywhere
test.

closes odoo/odoo#29383
This commit is contained in:
Christophe Monniez
2018-12-10 10:42:48 +00:00
parent b65202cb8e
commit 5e92adb39c
+1 -1
View File
@@ -176,7 +176,7 @@
$element.click();
},250);
var waitViewSwitch = waitForCondition(function(){
return $('.o_content > .o_view_controller').data('view-type') === viewType;
return $('.o_action_manager> .o_action.o_view_controller').data('view-type') === viewType;
});
return waitViewSwitch.then(function() {
return testFilters();