Files
design-themes/theme_anelusia/static/src/js/tour.js
T
Pierre Pulinckx (PIPU) 96c4cb68ad [REF] theme_*: remove extra_trigger
In order to simplify the tours API, it was decided to remove the
extra_trigger key from the steps.
To check that an element is in the DOM, simply create a step with
a trigger.

task~3974087

closes odoo/design-themes#816

Related: odoo/odoo#171309
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2024-07-02 09:46:48 +00:00

52 lines
1.3 KiB
JavaScript

/** @odoo-module */
import wTourUtils from '@website/js/tours/tour_utils';
const snippets = [
{
id: 's_text_cover',
name: 'Text Cover',
},
{
id: 's_images_wall',
name: 'Images Wall',
},
{
id: 's_color_blocks_2',
name: 'Big Boxes',
},
{
id: 's_references',
name: 'References',
},
{
id: 's_media_list',
name: 'Media List',
},
{
id: 's_company_team',
name: 'Team',
},
{
id: 's_call_to_action',
name: 'Call to Action',
},
];
wTourUtils.registerThemeHomepageTour("anelusia_tour", () => [
wTourUtils.assertCssVariable('--color-palettes-name', '"generic-17"'),
...wTourUtils.dragNDrop(snippets[0]),
...wTourUtils.clickOnText(snippets[0], 'h1', 'top'),
wTourUtils.goBackToBlocks(),
...wTourUtils.dragNDrop(snippets[1]),
...wTourUtils.dragNDrop(snippets[2], 'top'),
...wTourUtils.dragNDrop(snippets[3]),
...wTourUtils.clickOnSnippet(snippets[3], 'top'),
wTourUtils.changeBackgroundColor(),
wTourUtils.selectColorPalette(),
wTourUtils.goBackToBlocks(),
...wTourUtils.dragNDrop(snippets[4]),
...wTourUtils.dragNDrop(snippets[5]),
...wTourUtils.dragNDrop(snippets[6]),
]);