mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
fb69687603
The theme preview feature before selection was disabled in [1]. This
commit disables the related tour steps that were testing it a nightly
tour... that was red since then.
[1]: https://github.com/odoo/odoo/commit/7cb71e9479df0ee9af0b7ad39302857666726177
Related to task-3454790
closes odoo/design-themes#1080
X-original-commit: 9580ef86ac
Related: odoo/odoo#210221
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
51 lines
1.6 KiB
JavaScript
51 lines
1.6 KiB
JavaScript
/** @odoo-module */
|
|
|
|
import { registry } from "@web/core/registry";
|
|
|
|
registry.category("web_tour.tours").add("website_theme_preview", {
|
|
url: "/web#action=website.action_website_configuration",
|
|
steps: () => [
|
|
{
|
|
content: "Click on create new website",
|
|
trigger: 'button[name="action_website_create_new"]',
|
|
run: "click",
|
|
}, {
|
|
content: "insert website name",
|
|
trigger: '[name="name"] input',
|
|
run: "edit Website Test",
|
|
}, {
|
|
content: "Validate the website creation modal",
|
|
trigger: ".modal button.btn-primary",
|
|
run: "click",
|
|
},
|
|
// Configurator first screen
|
|
{
|
|
content: "Click Skip and start from scratch",
|
|
trigger: "button:contains('Skip and start from scratch')",
|
|
run: "click",
|
|
}, {
|
|
content: "Click on the Live preview of a theme",
|
|
trigger: ".o_theme_preview button:not(:visible)",
|
|
/*
|
|
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.
|
|
run: "click",
|
|
}, {
|
|
content: "Switch from desktop to mobile preview",
|
|
trigger: ".btn[for=themeViewerMobile]",
|
|
run: "click",
|
|
}, {
|
|
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]",
|
|
run: "click",
|
|
}, {
|
|
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
|
|
*/
|
|
}]});
|