mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
2b3b8b49b4
Following the change in the way of dragging and dropping a snippet onto the page (by selecting it from a dialog displaying the actual previews of snippets). The themes tours have been adapted to this change in this commit. task-3919405 closes odoo/design-themes#817 Related: odoo/odoo#166967 Related: odoo/enterprise#66150 Signed-off-by: Robin Lejeune (role) <role@odoo.com>
59 lines
1.5 KiB
JavaScript
59 lines
1.5 KiB
JavaScript
/** @odoo-module */
|
|
|
|
import wTourUtils from '@website/js/tours/tour_utils';
|
|
|
|
const snippets = [
|
|
{
|
|
id: 's_text_cover',
|
|
name: 'Text Cover',
|
|
groupName: "Intro",
|
|
},
|
|
{
|
|
id: 's_images_wall',
|
|
name: 'Images Wall',
|
|
groupName: "Images",
|
|
},
|
|
{
|
|
id: 's_color_blocks_2',
|
|
name: 'Big Boxes',
|
|
groupName: "Content",
|
|
},
|
|
{
|
|
id: 's_references',
|
|
name: 'References',
|
|
groupName: "People",
|
|
},
|
|
{
|
|
id: 's_media_list',
|
|
name: 'Media List',
|
|
groupName: "Content",
|
|
},
|
|
{
|
|
id: 's_company_team',
|
|
name: 'Team',
|
|
groupName: "People",
|
|
},
|
|
{
|
|
id: 's_call_to_action',
|
|
name: 'Call to Action',
|
|
groupName: "Content",
|
|
},
|
|
];
|
|
|
|
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]),
|
|
]);
|