Skip to content

Commit

Permalink
[FIX] web: adapt clickeverywhere test to the controlpanel refactor
Browse files Browse the repository at this point in the history
Since 4cd379c 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#29383
  • Loading branch information
d-fence committed Dec 10, 2018
1 parent b65202c commit 5e92adb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/web/static/src/js/tools/test_menus.js
Expand Up @@ -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();
Expand Down

0 comments on commit 5e92adb

Please sign in to comment.