[FIX] web: fix selector for the menu items in clickEverywhere test

Also clarify a variable name referencing a node instead of a jquery
object.
This commit is contained in:
Christophe Monniez
2018-09-18 16:44:38 +02:00
parent 9370decebb
commit 98ced5ca88
+3 -3
View File
@@ -61,7 +61,7 @@
$listOfAppMenuItems = $(".o_app, .o_menuitem")
} else {
console.log("Odoo flavor: Community")
$listOfAppMenuItems = $('#oe_main_menu_navbar a.oe_menu_leaf, #oe_main_menu_navbar a.o_app');
$listOfAppMenuItems = $('a.o_app');
}
console.log('Found ', $listOfAppMenuItems.length, 'apps to test');
@@ -260,9 +260,9 @@
* @returns : the chained deferred
*/
function chainDeferred($elements, deferred, f) {
_.each($elements, function($el) {
_.each($elements, function(el) {
deferred = deferred.then(function () {
return f($el);
return f(el);
});
});
return deferred;