mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
96c4cb68ad
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>
43 lines
959 B
JavaScript
43 lines
959 B
JavaScript
/** @odoo-module */
|
|
|
|
import wTourUtils from '@website/js/tours/tour_utils';
|
|
|
|
const snippets = [
|
|
{
|
|
id: 's_cover',
|
|
name: 'Cover',
|
|
},
|
|
{
|
|
id: 's_title',
|
|
name: 'Title',
|
|
},
|
|
{
|
|
id: 's_company_team',
|
|
name: 'Team',
|
|
},
|
|
{
|
|
id: 's_media_list',
|
|
name: 'Media List',
|
|
},
|
|
{
|
|
id: 's_images_wall',
|
|
name: 'Images Wall',
|
|
},
|
|
{
|
|
id: 's_quotes_carousel',
|
|
name: 'Quotes',
|
|
},
|
|
];
|
|
|
|
wTourUtils.registerThemeHomepageTour("yes_tour", () => [
|
|
wTourUtils.assertCssVariable('--color-palettes-name', '"yes-3"'),
|
|
...wTourUtils.dragNDrop(snippets[0]),
|
|
...wTourUtils.dragNDrop(snippets[1]),
|
|
...wTourUtils.clickOnText(snippets[1], 'h2'),
|
|
wTourUtils.goBackToBlocks(),
|
|
...wTourUtils.dragNDrop(snippets[2]),
|
|
...wTourUtils.dragNDrop(snippets[3]),
|
|
...wTourUtils.dragNDrop(snippets[4]),
|
|
...wTourUtils.dragNDrop(snippets[5]),
|
|
]);
|