59f35e4dde
*: theme_bookstore, theme_kiddo, theme_notes, theme_odoo_experts DOM structure was modified in website refactor [1], those tours were still using the former one because they were silently disabled during the refactor. See community PR for details (which re-enables them). [1]: https://github.com/odoo/odoo/commit/9fe45e2b7ddbbfd0445ffe25a859e67a316d02b2 Related to opw-5020952 Related to opw-5040694 Part-of: odoo/design-themes#1132 Related: odoo/odoo#224076 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
46 lines
1.2 KiB
JavaScript
46 lines
1.2 KiB
JavaScript
/** @odoo-module */
|
|
import * as wTourUtils from '@website/js/tours/tour_utils';
|
|
import { _t } from "@web/core/l10n/translation";
|
|
|
|
const snippets = [
|
|
{
|
|
id: 's_banner',
|
|
name: 'Banner',
|
|
groupName: "Intro",
|
|
},
|
|
{
|
|
id: 's_image_text',
|
|
name: 'Image - Text',
|
|
groupName: "Content",
|
|
},
|
|
{
|
|
id: 's_three_columns',
|
|
name: 'Columns',
|
|
groupName: "Columns",
|
|
},
|
|
{
|
|
id: 's_product_list',
|
|
name: 'Items',
|
|
groupName: "Columns",
|
|
},
|
|
{
|
|
id: 's_call_to_action',
|
|
name: 'Call to Action',
|
|
groupName: "Content",
|
|
},
|
|
];
|
|
|
|
wTourUtils.registerThemeHomepageTour("kiddo_tour", () => [
|
|
wTourUtils.assertCssVariable('--color-palettes-name', '"default-16"'),
|
|
...wTourUtils.insertSnippet(snippets[0]),
|
|
...wTourUtils.clickOnText(snippets[0], 'h1'),
|
|
wTourUtils.goBackToBlocks(),
|
|
...wTourUtils.insertSnippet(snippets[1]),
|
|
...wTourUtils.insertSnippet(snippets[2]),
|
|
...wTourUtils.insertSnippet(snippets[3]),
|
|
...wTourUtils.clickOnSnippet(snippets[3]),
|
|
wTourUtils.changeOption('Items', 'setContainerWidth', _t('width')),
|
|
wTourUtils.goBackToBlocks(),
|
|
...wTourUtils.insertSnippet(snippets[4]),
|
|
]);
|