aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/menu/menu_test_helpers.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/menu/menu_test_helpers.js')
-rw-r--r--tests/unit/menu/menu_test_helpers.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/unit/menu/menu_test_helpers.js b/tests/unit/menu/menu_test_helpers.js
index 77737c390..ea273c765 100644
--- a/tests/unit/menu/menu_test_helpers.js
+++ b/tests/unit/menu/menu_test_helpers.js
@@ -24,7 +24,9 @@ TestHelpers.menu = {
click: function( menu, item ) {
lastItem = item;
- menu.children( ":eq(" + item + ")" ).trigger( "click" );
+ menu.children( ":eq(" + item + ")" )
+ .children( ".ui-menu-item-wrapper" )
+ .trigger( "click" );
}
};