[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.

cheery-pick of 5e92adb39c

closes odoo/odoo#29396
This commit is contained in:
Christophe Monniez
2018-12-10 15:59:07 +00:00
parent d3357836bc
commit ab376d60cb
+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();