/** @odoo-module */ import wTourUtils from '@website/js/tours/tour_utils'; import { _t } from "@web/core/l10n/translation"; const snippets = [ { id: 's_cover', name: 'Cover', groupName: "Intro", }, { id: 's_text_image', name: 'Text - Image', groupName: "Content", }, { id: 's_title', name: 'Title', groupName: "Text", }, { id: 's_features', name: 'Features', groupName: "Content", }, { id: 's_carousel', name: 'Carousel', groupName: "Intro", }, { id: 's_numbers', name: 'Numbers', groupName: "Content", }, { id: 's_three_columns', name: 'Columns', groupName: "Content", }, { id: 's_call_to_action', name: 'Call to Action', groupName: "Content", }, ]; wTourUtils.registerThemeHomepageTour("clean_tour", () => [ wTourUtils.assertCssVariable('--color-palettes-name', '"clean-1"'), ...wTourUtils.dragNDrop(snippets[0]), ...wTourUtils.clickOnText(snippets[0], 'h1'), wTourUtils.goBackToBlocks(), ...wTourUtils.dragNDrop(snippets[1]), ...wTourUtils.dragNDrop(snippets[2]), ...wTourUtils.dragNDrop(snippets[3]), ...wTourUtils.clickOnSnippet(snippets[3]), wTourUtils.changeOption('ContainerWidth', 'we-button-group.o_we_user_value_widget', _t('width')), wTourUtils.goBackToBlocks(), ...wTourUtils.dragNDrop(snippets[4]), ...wTourUtils.dragNDrop(snippets[5]), ...wTourUtils.dragNDrop(snippets[6]), ...wTourUtils.dragNDrop(snippets[7]), ]);