From 38e0c87ae353bf855328ba57bb746ff5833ea8ba Mon Sep 17 00:00:00 2001 From: "Guillaume (gdi)" Date: Tue, 18 Apr 2023 10:53:20 +0000 Subject: [PATCH] [FIX] theme_test_custo: use new utility to enter in edit mode This commit permits to use the new utility to enter in edit mode. This way, we make sure that the edit mode is enabled before testing the next step of the test. This avoids race conditions during tests. task-3203820 closes odoo/design-themes#655 X-original-commit: f4d818e772c50fd557d30221e05a72ac891b7636 Related: odoo/odoo#120335 Signed-off-by: Romain Derie (rde) Signed-off-by: Guillaume-gdi --- theme_test_custo/static/tests/tours/theme_menu_hierarchies.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/theme_test_custo/static/tests/tours/theme_menu_hierarchies.js b/theme_test_custo/static/tests/tours/theme_menu_hierarchies.js index 4af79459f..c6b616b0a 100644 --- a/theme_test_custo/static/tests/tours/theme_menu_hierarchies.js +++ b/theme_test_custo/static/tests/tours/theme_menu_hierarchies.js @@ -29,11 +29,9 @@ wTourUtils.registerWebsitePreviewTour('theme_menu_hierarchies', { trigger: 'iframe footer ul li a[href="/dogs"]', run: () => null, // It's a check. }, - wTourUtils.clickOnEdit(), + ...wTourUtils.clickOnEditAndWaitEditMode(), { content: 'Click on footer', - // TODO: this extra_trigger should be part of the `clickOnEdit` util - extra_trigger: "#oe_snippets.o_loaded", trigger: 'iframe footer', }, { content: 'The theme custom footer template should be listed and selected',