From 861a663aeb0a7e1b489a8c6084f656a1c51c72e7 Mon Sep 17 00:00:00 2001 From: Hubert Van De Walle Date: Mon, 12 May 2025 09:22:31 +0000 Subject: [PATCH] [FIX] theme_test_custo: adapt test_website_theme_preview tour Follow-up of f38205873e82e05a358a766bf24d290df9e5b9ea closes odoo/design-themes#1072 X-original-commit: 0d49f07058a3255760ae74cd595d4b17d8d844d3 Signed-off-by: Hubert Van De Walle --- .../static/tests/tours/website_theme_preview.js | 7 +++---- 1 file changed, 3 insertions(+), 4 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 e9401d24a..7c34907ee 100644 --- a/theme_test_custo/static/tests/tours/website_theme_preview.js +++ b/theme_test_custo/static/tests/tours/website_theme_preview.js @@ -3,7 +3,6 @@ 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: () => [ { @@ -13,10 +12,10 @@ registry.category("web_tour.tours").add("website_theme_preview", { }, { content: "insert website name", trigger: '[name="name"] input', - run: "text Website Test", + run: "edit Website Test", }, { content: "Validate the website creation modal", - trigger: "button.btn-primary", + trigger: ".modal button.btn-primary", run: "click", }, // Configurator first screen @@ -26,7 +25,7 @@ registry.category("web_tour.tours").add("website_theme_preview", { run: "click", }, { content: "Click on the Live preview of a theme", - trigger: ".o_theme_preview .o_button_area .btn-secondary:contains('Live Preview')", + trigger: ".o_theme_preview button:not(:visible)", run: "click", }, { content: "Switch from desktop to mobile preview",