diff --git a/addons/project/static/tests/tours/personal_stage_tour.js b/addons/project/static/tests/tours/personal_stage_tour.js index 134f40dcc63..d06553867ee 100644 --- a/addons/project/static/tests/tours/personal_stage_tour.js +++ b/addons/project/static/tests/tours/personal_stage_tour.js @@ -45,7 +45,7 @@ tour.register('personal_stage_tour', { content: 'Open column edit dropdown', trigger: '.o_kanban_header:eq(0)', run: function () { - $('.o_kanban_config.dropdown .dropdown-toggle').eq(0).click(); + document.querySelector('.o_kanban_config.dropdown .dropdown-toggle').dispatchEvent(new Event('click')); }, }, { content: "Try editing inbox", diff --git a/addons/project/static/tests/tours/project_update_tour_tests.js b/addons/project/static/tests/tours/project_update_tour_tests.js index c29ca199da9..4d854013ed2 100644 --- a/addons/project/static/tests/tours/project_update_tour_tests.js +++ b/addons/project/static/tests/tours/project_update_tour_tests.js @@ -81,9 +81,9 @@ tour.register('project_update_tour', { trigger: '.o_kanban_quick_create .o_kanban_add', extra_trigger: '.o_kanban_project_tasks' }, { - trigger: '.o_kanban_header:eq(1)', + trigger: '.o_kanban_group:nth-child(2) .o_kanban_header', run: function () { - $('.o_kanban_config.dropdown .dropdown-toggle').eq(1).click(); + document.querySelector('.o_kanban_group:nth-child(2) .o_kanban_config.dropdown .dropdown-toggle').dispatchEvent(new Event('click')) } }, { trigger: ".dropdown-item.o_column_edit", diff --git a/addons/website/static/tests/tours/edit_megamenu.js b/addons/website/static/tests/tours/edit_megamenu.js index 548eac6bd45..68619084932 100644 --- a/addons/website/static/tests/tours/edit_megamenu.js +++ b/addons/website/static/tests/tours/edit_megamenu.js @@ -10,7 +10,7 @@ const toggleMegaMenu = (stepOptions) => Object.assign({}, { // If the mega menu is displayed inside the extra menu items, it should // already be displayed. if (!this.$anchor[0].closest('.o_extra_menu_items')) { - this.$anchor[0].click(); + this.$anchor[0].dispatchEvent(new Event('click')) } }, }, stepOptions);