diff options
Diffstat (limited to 'addons/board/static/tests/dashboard_tests.js')
| -rw-r--r-- | addons/board/static/tests/dashboard_tests.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/addons/board/static/tests/dashboard_tests.js b/addons/board/static/tests/dashboard_tests.js index bb0663e1468..af559f423c1 100644 --- a/addons/board/static/tests/dashboard_tests.js +++ b/addons/board/static/tests/dashboard_tests.js @@ -806,6 +806,12 @@ QUnit.test('save two searches to dashboard', function (assert) { testUtils.dom.click(actionManager.$('.o_apply_filter')); // Add it to dashboard testUtils.dom.click(actionManager.$('.o_favorites_menu_button')); + $('.o_search_options .dropdown-menu.o_favorites_menu').one('click', function (ev) { + // This handler is on the webClient + // But since the test suite doesn't have one + // We manually set it here + ev.stopPropagation(); + }); testUtils.dom.click(actionManager.$('.o_add_to_board')); testUtils.dom.click(actionManager.$('.o_add_to_board_confirm_button')); // Remove it @@ -818,6 +824,12 @@ QUnit.test('save two searches to dashboard', function (assert) { testUtils.dom.click(actionManager.$('.o_apply_filter')); // Add it to dashboard testUtils.dom.click(actionManager.$('.o_favorites_menu_button')); + $('.o_search_options .dropdown-menu.o_favorites_menu').one('click', function (ev) { + // This handler is on the webClient + // But since the test suite doesn't have one + // We manually set it here + ev.stopPropagation(); + }); testUtils.dom.click(actionManager.$('.o_add_to_board')); testUtils.dom.click(actionManager.$('.o_add_to_board_confirm_button')); |
