From f17eaebfef071ae5f0783f4c0ecb3737ece52cf7 Mon Sep 17 00:00:00 2001 From: Hubert Van De Walle Date: Wed, 7 May 2025 12:40:19 +0000 Subject: [PATCH] [FIX] theme_test_custo: prevent failing test_website_theme_preview tour When running the test test_website_theme_preview, we have the following error: `tour.steps has to be a function that returns TourStep[]` runbot-111646 runbot-163139 closes odoo/design-themes#1067 X-original-commit: a3eb65d3ea85ea688ed20f52e38b965e325b2aca Signed-off-by: Quentin Smetz (qsm) --- .../static/tests/tours/website_theme_preview.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/theme_test_custo/static/tests/tours/website_theme_preview.js b/theme_test_custo/static/tests/tours/website_theme_preview.js index 17f0eff05..e9401d24a 100644 --- a/theme_test_custo/static/tests/tours/website_theme_preview.js +++ b/theme_test_custo/static/tests/tours/website_theme_preview.js @@ -5,8 +5,8 @@ import { registry } from "@web/core/registry"; registry.category("web_tour.tours").add("website_theme_preview", { test: true, url: "/web#action=website.action_website_configuration", -}, -[{ + steps: () => [ +{ content: "Click on create new website", trigger: 'button[name="action_website_create_new"]', run: "click", @@ -44,4 +44,4 @@ registry.category("web_tour.tours").add("website_theme_preview", { content: "Check that the desktop view is active", trigger: ".o_view_form_theme_preview_controller .o_field_iframe > div:not(.is_mobile):visible", run: () => null, // it's a check -}]); +}]});