Files
design-themes/theme_bookstore/static/src/js/tour.js
T
Serge Bayet (seba) ace1b39d46 [IMP] *: adapt themes due to changes made in s_picture snippet
*: theme_bistro, theme_odoo_experts, theme_vehicle, theme_avantgarde,
theme_aviato, theme_bookstore, theme_enark, theme_graphene, theme_kea

This commit adapts the themes to accommodate layout changes in the
s_picture snippet.

See also : https://github.com/odoo/odoo/pull/145413
task-3626753

closes odoo/design-themes#753

Related: odoo/odoo#145413
Signed-off-by: Benoit Socias (bso) <bso@odoo.com>
2024-02-19 19:27:13 +00:00

47 lines
1.2 KiB
JavaScript

/** @odoo-module */
import wTourUtils from '@website/js/tours/tour_utils';
import { _t } from "@web/core/l10n/translation";
const snippets = [
{
id: 's_cover',
name: 'Cover',
},
{
id: 's_masonry_block',
name: 'Masonry',
},
{
id: 's_image_text',
name: 'Image - Text',
},
{
id: 's_picture',
name: 'Title - Image',
},
{
id: 's_product_list',
name: 'Items',
},
{
id: 's_call_to_action',
name: 'Call to Action',
},
];
wTourUtils.registerThemeHomepageTour("bookstore_tour", () => [
wTourUtils.assertCssVariable('--color-palettes-name', '"generic-8"'),
wTourUtils.dragNDrop(snippets[0]),
wTourUtils.clickOnText(snippets[0], 'h1'),
wTourUtils.goBackToBlocks(),
wTourUtils.dragNDrop(snippets[1]),
wTourUtils.dragNDrop(snippets[2]),
wTourUtils.dragNDrop(snippets[3]),
wTourUtils.dragNDrop(snippets[4]),
wTourUtils.clickOnSnippet(snippets[4]),
wTourUtils.changeOption('ContainerWidth', 'we-button-group.o_we_user_value_widget', _t('width')),
wTourUtils.goBackToBlocks(),
wTourUtils.dragNDrop(snippets[5]),
]);