From 5e92adb39ca8cf5f4b48e3eb1d52a66dc65572f3 Mon Sep 17 00:00:00 2001 From: Christophe Monniez Date: Mon, 10 Dec 2018 10:31:36 +0000 Subject: [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 --- addons/web/static/src/js/tools/test_menus.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/web/static/src/js/tools/test_menus.js') diff --git a/addons/web/static/src/js/tools/test_menus.js b/addons/web/static/src/js/tools/test_menus.js index c0543bf1772..c7b1846b1e9 100644 --- a/addons/web/static/src/js/tools/test_menus.js +++ b/addons/web/static/src/js/tools/test_menus.js @@ -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(); -- cgit v1.2.3