2021-05-28 08:06:34 +00:00
|
|
|
/** @odoo-module */
|
|
|
|
|
|
2023-11-23 13:16:48 +01:00
|
|
|
import { _t } from 'web.core';
|
2021-05-28 08:06:34 +00:00
|
|
|
import wTourUtils from 'website.tour_utils';
|
|
|
|
|
|
|
|
|
|
const snippets = [
|
|
|
|
|
{
|
|
|
|
|
id: 's_cover',
|
|
|
|
|
name: 'Cover',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 's_text_image',
|
|
|
|
|
name: 'Text - Image',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 's_image_text',
|
|
|
|
|
name: 'Image - Text',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 's_title',
|
|
|
|
|
name: 'Title',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 's_three_columns',
|
|
|
|
|
name: 'Columns',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 's_picture',
|
|
|
|
|
name: 'Picture',
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
wTourUtils.registerThemeHomepageTour("aviato_tour", [
|
|
|
|
|
wTourUtils.dragNDrop(snippets[0]),
|
|
|
|
|
wTourUtils.clickOnText(snippets[0], 'h1', 'top'),
|
|
|
|
|
wTourUtils.goBackToBlocks(),
|
|
|
|
|
wTourUtils.dragNDrop(snippets[1]),
|
|
|
|
|
wTourUtils.dragNDrop(snippets[2]),
|
|
|
|
|
wTourUtils.dragNDrop(snippets[3]),
|
|
|
|
|
wTourUtils.dragNDrop(snippets[4]),
|
|
|
|
|
wTourUtils.dragNDrop(snippets[5]),
|
|
|
|
|
wTourUtils.clickOnSnippet(snippets[5], 'top'),
|
|
|
|
|
wTourUtils.changeOption('BackgroundShape', 'we-toggler', _t('Background Shape')),
|
|
|
|
|
wTourUtils.selectNested('we-select-page', 'BackgroundShape', ':not(.o_we_pager_controls)', _t('Background Shape')),
|
|
|
|
|
]);
|