mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
97683ee283
task-4178021 Part of task-4177975 closes odoo/design-themes#919 Related: odoo/odoo#180736 Signed-off-by: Outagant Mehdi (mou) <mou@odoo.com> Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
47 lines
1.2 KiB
JavaScript
47 lines
1.2 KiB
JavaScript
/** @odoo-module */
|
|
|
|
import * as wTourUtils from '@website/js/tours/tour_utils';
|
|
|
|
const snippets = [
|
|
{
|
|
id: 's_image_title',
|
|
name: 'Image Title',
|
|
groupName: "Images",
|
|
},
|
|
{
|
|
id: 's_key_images',
|
|
name: 'Key Images',
|
|
groupName: "Columns",
|
|
},
|
|
{
|
|
id: 's_pricelist_cafe',
|
|
name: 'Pricelist cafe',
|
|
groupName: "Content",
|
|
},
|
|
{
|
|
id: 's_quotes_carousel',
|
|
name: 'Quotes',
|
|
groupName: "People",
|
|
},
|
|
{
|
|
id: 's_quadrant',
|
|
name: 'Quadrant',
|
|
groupName: "Images",
|
|
},
|
|
];
|
|
|
|
wTourUtils.registerThemeHomepageTour("bistro_tour", () => [
|
|
wTourUtils.assertCssVariable('--color-palettes-name', '"default-22"'),
|
|
...wTourUtils.dragNDrop(snippets[0]),
|
|
...wTourUtils.clickOnText(snippets[0], 'h1', 'top'),
|
|
wTourUtils.goBackToBlocks(),
|
|
...wTourUtils.dragNDrop(snippets[1]),
|
|
...wTourUtils.dragNDrop(snippets[2]),
|
|
...wTourUtils.clickOnSnippet(snippets[2]),
|
|
wTourUtils.changeBackgroundColor(),
|
|
wTourUtils.selectColorPalette(),
|
|
wTourUtils.goBackToBlocks(),
|
|
...wTourUtils.dragNDrop(snippets[3]),
|
|
...wTourUtils.dragNDrop(snippets[4]),
|
|
]);
|