[FIX] theme_test_custo: adapt test_website_theme_preview tour

Follow-up of f38205873e

X-original-commit: d741e3ed3a
Part-of: odoo/design-themes#1082
Related: odoo/odoo#210890
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
Hubert Van De Walle
2025-05-12 09:22:31 +00:00
committed by qsm-odoo
parent e0b3b87993
commit cdc0150ddb
@@ -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",