2023-04-27 07:50:35 +00:00
|
|
|
/** @odoo-module **/
|
2021-05-10 15:45:35 +02:00
|
|
|
|
2023-07-13 06:53:15 +00:00
|
|
|
import wTourUtils from "@website/js/tours/tour_utils";
|
2021-05-10 15:45:35 +02:00
|
|
|
|
|
|
|
|
const snippets = [
|
|
|
|
|
{
|
|
|
|
|
id: 's_banner',
|
|
|
|
|
name: 'Banner',
|
2024-07-04 16:03:09 +02:00
|
|
|
groupName: "Intro",
|
2021-05-10 15:45:35 +02:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 's_picture',
|
2023-12-12 14:40:36 +01:00
|
|
|
name: 'Title - Image',
|
2024-07-04 16:03:09 +02:00
|
|
|
groupName: "Images",
|
2021-05-10 15:45:35 +02:00
|
|
|
},
|
2021-07-22 14:33:03 +00:00
|
|
|
{
|
|
|
|
|
id: 's_numbers',
|
|
|
|
|
name: 'Numbers',
|
2024-07-04 16:03:09 +02:00
|
|
|
groupName: "Content",
|
2021-07-22 14:33:03 +00:00
|
|
|
},
|
2021-05-10 15:45:35 +02:00
|
|
|
{
|
|
|
|
|
id: 's_text_image',
|
|
|
|
|
name: 'Text - Image',
|
2024-07-04 16:03:09 +02:00
|
|
|
groupName: "Content",
|
2021-05-10 15:45:35 +02:00
|
|
|
},
|
|
|
|
|
{
|
2024-07-04 16:03:09 +02:00
|
|
|
id: 's_images_wall',
|
2021-07-22 14:33:03 +00:00
|
|
|
name: 'Images Wall',
|
2024-07-04 16:03:09 +02:00
|
|
|
groupName: "Images",
|
2021-05-10 15:45:35 +02:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 's_call_to_action',
|
|
|
|
|
name: 'Call to Action',
|
2024-07-04 16:03:09 +02:00
|
|
|
groupName: "Content",
|
2021-05-10 15:45:35 +02:00
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
|
2023-07-31 13:58:17 +00:00
|
|
|
wTourUtils.registerThemeHomepageTour("enark_tour", () => [
|
2022-09-21 09:20:55 +00:00
|
|
|
wTourUtils.assertCssVariable('--color-palettes-name', '"enark-1"'),
|
2024-07-01 14:02:37 +02:00
|
|
|
...wTourUtils.dragNDrop(snippets[0]),
|
|
|
|
|
...wTourUtils.clickOnText(snippets[0], 'h1'),
|
2021-05-10 15:45:35 +02:00
|
|
|
wTourUtils.goBackToBlocks(),
|
2024-07-01 14:02:37 +02:00
|
|
|
...wTourUtils.dragNDrop(snippets[1]),
|
|
|
|
|
...wTourUtils.dragNDrop(snippets[2]),
|
|
|
|
|
...wTourUtils.dragNDrop(snippets[3]),
|
|
|
|
|
...wTourUtils.dragNDrop(snippets[4]),
|
|
|
|
|
...wTourUtils.dragNDrop(snippets[5]),
|
2021-05-10 15:45:35 +02:00
|
|
|
]);
|