From ce3b096de7a0dcbf2bc8387d0c17ac3d320a7ec4 Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Tue, 9 Apr 2024 13:55:06 +0200 Subject: [PATCH] [FIX] website: make 'edit_menus' tour work without website_sale The tour mentioned the "Shop" menu item since [1]. This is obviously a mistake: the tour should work when only the website app is installed. [1]: https://github.com/odoo/odoo/commit/a4b1c268131ed771dd68616a26a9f1ce50a189f0 runbot-60696 closes odoo/odoo#161073 Signed-off-by: Quentin Smetz (qsm) --- addons/website/static/tests/tours/edit_menus.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/website/static/tests/tours/edit_menus.js b/addons/website/static/tests/tours/edit_menus.js index 60d69585267..737a79e6415 100644 --- a/addons/website/static/tests/tours/edit_menus.js +++ b/addons/website/static/tests/tours/edit_menus.js @@ -175,14 +175,14 @@ wTourUtils.registerWebsitePreviewTour('edit_menus', { debugHelp: "This is a hack/workaround for the next step", }, { - content: "Drag item into parent", + content: "Drag 'Contact Us' item below the 'Home' item", trigger: '.oe_menu_editor li:contains("Contact us") .fa-bars', - run: "drag_and_drop_native .oe_menu_editor li:contains('Shop') .fa-bars", + run: "drag_and_drop_native .oe_menu_editor li:contains('Home') + li .fa-bars", }, { - content: "Drag item into parent", + content: "Drag 'Contact Us' item as a child of the 'Home' item", trigger: '.oe_menu_editor li:contains("Contact us") .fa-bars', - run: 'drag_and_drop_native .oe_menu_editor li:contains("Contact us") .form-control', + run: "drag_and_drop_native .oe_menu_editor li:contains('Home') + li .form-control", }, { content: "Wait for drop",