2023-06-13 09:47:44 +00:00
|
|
|
/** @odoo-module */
|
|
|
|
|
|
2023-07-13 06:53:15 +00:00
|
|
|
import { registry } from "@web/core/registry";
|
2023-06-13 09:47:44 +00:00
|
|
|
|
2023-07-13 06:53:15 +00:00
|
|
|
registry.category("web_tour.tours").add("website_theme_preview", {
|
2023-06-13 09:47:44 +00:00
|
|
|
url: "/web#action=website.action_website_configuration",
|
2025-05-07 12:40:19 +00:00
|
|
|
steps: () => [
|
|
|
|
|
{
|
2023-06-13 09:47:44 +00:00
|
|
|
content: "Click on create new website",
|
|
|
|
|
trigger: 'button[name="action_website_create_new"]',
|
2024-06-04 08:45:24 +02:00
|
|
|
run: "click",
|
2023-06-13 09:47:44 +00:00
|
|
|
}, {
|
|
|
|
|
content: "insert website name",
|
|
|
|
|
trigger: '[name="name"] input',
|
2025-05-12 09:22:31 +00:00
|
|
|
run: "edit Website Test",
|
2023-06-13 09:47:44 +00:00
|
|
|
}, {
|
|
|
|
|
content: "Validate the website creation modal",
|
2025-05-12 09:22:31 +00:00
|
|
|
trigger: ".modal button.btn-primary",
|
2024-06-04 08:45:24 +02:00
|
|
|
run: "click",
|
2023-06-13 09:47:44 +00:00
|
|
|
},
|
|
|
|
|
// Configurator first screen
|
|
|
|
|
{
|
|
|
|
|
content: "Click Skip and start from scratch",
|
|
|
|
|
trigger: "button:contains('Skip and start from scratch')",
|
2024-06-04 08:45:24 +02:00
|
|
|
run: "click",
|
2023-06-13 09:47:44 +00:00
|
|
|
}, {
|
|
|
|
|
content: "Click on the Live preview of a theme",
|
2025-05-12 09:22:31 +00:00
|
|
|
trigger: ".o_theme_preview button:not(:visible)",
|
2025-05-15 12:56:51 +00:00
|
|
|
/*
|
|
|
|
|
TODO The feature that the following steps are testing is currently disabled.
|
|
|
|
|
It will either be restored or entirely removed at some point. See task-3454790.
|
2024-06-04 08:45:24 +02:00
|
|
|
run: "click",
|
2023-06-13 09:47:44 +00:00
|
|
|
}, {
|
|
|
|
|
content: "Switch from desktop to mobile preview",
|
|
|
|
|
trigger: ".btn[for=themeViewerMobile]",
|
2024-06-04 08:45:24 +02:00
|
|
|
run: "click",
|
2023-06-13 09:47:44 +00:00
|
|
|
}, {
|
|
|
|
|
content: "Check that the mobile view is active",
|
|
|
|
|
trigger: ".o_view_form_theme_preview_controller .o_field_iframe > div.is_mobile:visible",
|
|
|
|
|
run: () => null, // it's a check
|
|
|
|
|
}, {
|
|
|
|
|
content: "Switch back to desktop",
|
|
|
|
|
trigger: ".btn[for=themeViewerDesktop]",
|
2024-06-04 08:45:24 +02:00
|
|
|
run: "click",
|
2023-06-13 09:47:44 +00:00
|
|
|
}, {
|
|
|
|
|
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
|
2025-05-15 12:56:51 +00:00
|
|
|
*/
|
2025-05-07 12:40:19 +00:00
|
|
|
}]});
|